com.zmicer.utils
Class REUtils
java.lang.Object
com.zmicer.utils.REUtils
public class REUtils
- extends Object
Contains the utility methods for parsing the String using the regular expressions
$Author:: zmicer $
$Rev:: 53 $
$Date:: 2007-08-23 00:25:47 #$
Field Summary |
static org.apache.log4j.Logger |
LOG
Logger instance. |
Method Summary |
static boolean |
matches(String str,
Pattern pattern)
Check if the given string matches the provided Pattern object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.log4j.Logger LOG
- Logger instance.
REUtils
public REUtils()
matches
public static boolean matches(String str,
Pattern pattern)
- Check if the given string matches the provided Pattern object
- Parameters:
str
- String should be checked, Can not be null (otherwise IllegalArgumentException
would appear).pattern
- Pattern - etalon for the matching,
Can not be null (otherwise IllegalArgumentException
would appear).
- Returns:
- true if the String matches the pattern, false othewise
Copyright © 2007 jzmicer.team. All Rights Reserved.