public abstract class REUtil
- Object
- REUtil
This is a class that contains utility helper methods for this package.
Constructors
public REUtil() |
Methods
public static RE createRE(String expression, int matchFlags)
throws RESyntaxException | Creates a regular expression, permitting simple or complex syntax |
public static RE createRE(String expression)
throws RESyntaxException | Creates a regular expression, permitting simple or complex syntax |
Inherited methods
Constructor details
REUtil
public REUtil()Method details
createRE
public static RE createRE(String expression, int matchFlags)
throws RESyntaxExceptionCreates a regular expression, permitting simple or complex syntax
Parameters
expressionString- The expression, beginning with a prefix if it’s complex or having no prefix if it’s simple
matchFlagsint- Matching style flags
Returns
The regular expression object
Throws
RESyntaxException- thrown in case of error
createRE
public static RE createRE(String expression)
throws RESyntaxExceptionCreates a regular expression, permitting simple or complex syntax
Parameters
expressionString- 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