public static String createLikeRegex ( String expr , boolean ignoreCase ) { String regex = createRegex ( expr , ignoreCase ) ; regex = regex . replace ( "_" , "." ) . replace ( "%" , ".*?" ) ; return regex ; }
Create regular expression equivalent to any like operator string match function .