private ByteMatch findNextMatch() {
			if (!matcher.find()) {
				return null;
			}
			int start = matcher.start();
			int end = matcher.end();
			if (start >= byteSequence.getLength()) {
				return null;
			}
			return new ByteMatch(start, end - start);
		}
Adapter class for converting java {@link Pattern} matching into an iterator of
{@link ByteMatch}s.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/matcher/RegExByteMatcher.java