Packagecom.iwobanas.utils
Classpublic class WildcardUtils

The WildcardUtils class is an all-static class with methods for working with wildcards. You do not create instances of WildcardUtils; instead you simply call static methods such as the WildcardUtils.wildcardToRegExp() method.



Public Methods
 MethodDefined by
  
wildcardToRegExp(wildcard:String, flags:String = "i", asterisk:Boolean = true, questionMark:Boolean = true):RegExp
[static] Convert wildcard string to regular expression.
WildcardUtils
Method detail
wildcardToRegExp()method
public static function wildcardToRegExp(wildcard:String, flags:String = "i", asterisk:Boolean = true, questionMark:Boolean = true):RegExp

Convert wildcard string to regular expression.

Parameters
wildcard:String — wildcard string to be converted to regular expression
 
flags:String (default = "i") — flags used to create regular expression (see RegExp documentation)
 
asterisk:Boolean (default = true) — whether asterisk is interpreted as any character sequence
 
questionMark:Boolean (default = true) — whether question mark is interpreted as any character

Returns
RegExp — regular expression equivalent to passed wildcard