@Override
	protected Pattern createPattern() {
		try {
			Pattern pattern = Pattern.compile(filterText, Pattern.DOTALL);
			return pattern;
		}
		catch (Exception e) {
			// This can happen as the user is typing their regex; not sure what else we can do.
			// The net effect is that the filter will appear to do nothing.
			return null;
		}
	}
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