net.sue445.kulib.util
Class RegexUtil

java.lang.Object
  extended by net.sue445.kulib.util.RegexUtil

public final class RegexUtil
extends Object

Utility for regular expression

Since:
0.0.3
Author:
sue445

Method Summary
static List<String> getSubexpressionGroup(String regex, String str)
          get subexpression group
static boolean isInexactMatch(String regex, String str)
          whether inexact match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSubexpressionGroup

public static List<String> getSubexpressionGroup(String regex,
                                                 String str)
get subexpression group

Parameters:
regex -
str -
Returns:
subexpression group. if not matched, return empty

isInexactMatch

public static boolean isInexactMatch(String regex,
                                     String str)
whether inexact match

Parameters:
regex -
str -
Returns:


Copyright © 2013. All Rights Reserved.