@Override
	protected Pattern createPattern() {

		int options = Pattern.DOTALL;
		if (!caseSensitive) {
			options |= Pattern.CASE_INSENSITIVE;
		}

		Pattern pattern = UserSearchUtils.createContainsPattern(filterText, allowGlobbing, options);
		return pattern;
	}
A filter that will pass text when it contains the filter text.
Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/ContainsTextFilter.java