com.waveset.util
Class RegExUtil

java.lang.Object
  extended bycom.waveset.util.RegExUtil

public class RegExUtil
extends java.lang.Object

Take a look at the RegExUtilTest for examples on what to expect.


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
RegExUtil()
           
 
Method Summary
static java.util.List getAllGroups(java.lang.String regex, java.lang.String strToMatch)
          If regex is constructed with "(a+)b(c+)", then expect these return values strMatch Return Value -------- ------------ "" [] "aaabccc" [["aaabccc", "aaa", "ccc"]] "aaabcccxyzaabcc" [["aaabccc", "aaa", "ccc"], ["aabcc", "aa", "cc"]]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

RegExUtil

public RegExUtil()
Method Detail

getAllGroups

public static java.util.List getAllGroups(java.lang.String regex,
                                          java.lang.String strToMatch)
If regex is constructed with "(a+)b(c+)", then expect these return values strMatch Return Value -------- ------------ "" [] "aaabccc" [["aaabccc", "aaa", "ccc"]] "aaabcccxyzaabcc" [["aaabccc", "aaa", "ccc"], ["aabcc", "aa", "cc"]]