Package org.apache.regexp
Class REUtil
- java.lang.Object
-
- org.apache.regexp.REUtil
-
public class REUtil extends Object
This is a class that contains utility helper methods for this package.
-
-
Constructor Summary
Constructors Constructor Description REUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static REcreateRE(String expression)Creates a regular expression, permitting simple or complex syntaxstatic REcreateRE(String expression, int matchFlags)Creates a regular expression, permitting simple or complex syntax
-
-
-
Method Detail
-
createRE
public static RE createRE(String expression, int matchFlags) throws RESyntaxException
Creates a regular expression, permitting simple or complex syntax- Parameters:
expression- The expression, beginning with a prefix if it's complex or having no prefix if it's simplematchFlags- Matching style flags- Returns:
- The regular expression object
- Throws:
RESyntaxException- thrown in case of error
-
createRE
public static RE createRE(String expression) throws RESyntaxException
Creates a regular expression, permitting simple or complex syntax- Parameters:
expression- The expression, beginning with a prefix if it's complex or having no prefix if it's simple- Returns:
- The regular expression object
- Throws:
RESyntaxException- thrown in case of error
-
-