@Override
	public boolean isSubFilterOf(TextFilter parentFilter) {
		if (!(parentFilter instanceof FindsPatternTextFilter)) {
			return false;
		}

		//
		// This can be very tricky, so only attempt simple pattern comparison: we have to 
		// start with the given pattern and our new text can only use simple regex characters
		//
		FindsPatternTextFilter other = (FindsPatternTextFilter) parentFilter;
		String parent = other.filterText;
		String child = filterText;
		if (!child.startsWith(parent)) {
			return false;
		}

		// only allow simple globbing characters (in order to avoid complex things like look ahead
		// and look behind
		boolean isSubFilter = areAllCharactersSimpleEnough(child.substring(parent.length()));
		return isSubFilter;
	}
A text filter that uses a pattern and performs a 'find' using that pattern.
Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/FindsPatternTextFilter.java