private boolean wildcardMatch ( Set < String > pValues , String pValue ) { for ( String pattern : pValues ) { if ( pattern . contains ( "*" ) && pValue . matches ( pattern . replaceAll ( "\\*" , ".*" ) ) ) { return true ; } } return false ; }
Check whether a value matches patterns in pValues