class UserSearchUtils {

	public static Pattern createSearchPattern(String input, boolean caseSensitive) {

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

		Pattern p = createPattern(input, true, options);
		return p;
	}

}