Class REUtil

java.lang.Object
com.codename1.util.regex.REUtil

public abstract class REUtil extends java.lang.Object
This is a class that contains utility helper methods for this package.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static RE
    createRE(String expression)
    Creates a regular expression, permitting simple or complex syntax
    static RE
    createRE(String expression, int matchFlags)
    Creates a regular expression, permitting simple or complex syntax

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • REUtil

      public REUtil()
  • Method Details

    • createRE

      public static RE createRE(String expression, int matchFlags) throws RESyntaxException

      Creates a regular expression, permitting simple or complex syntax

      Parameters
      • expression: @param expression The expression, beginning with a prefix if it's complex or having no prefix if it's simple

      • matchFlags: Matching style flags

      Returns

      The regular expression object

      Throws
      • RESyntaxException: thrown in case of error
      Throws:
      RESyntaxException
    • createRE

      public static RE createRE(String expression) throws RESyntaxException

      Creates a regular expression, permitting simple or complex syntax

      Parameters
      • expression: @param 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
      Throws:
      RESyntaxException