private static boolean contains(char[] array, char c) {
		for (char next : array) {
			if (next == c) {
				return true;
			}
		}
		return false;
	}
Escapes all regex characters with the '\' character, except for those in the given exclusion 
array.

@param input The input string to be escaped
@param doNotEscape an array of characters that should not be escaped
@return A new regex string with special characters escaped.
Ghidra/Framework/Utility/src/main/java/ghidra/util/UserSearchUtils.java