org.infoglue.cms.util
Class RegexpHelper

java.lang.Object
  extended by org.infoglue.cms.util.RegexpHelper

public class RegexpHelper
extends java.lang.Object

Utility class for regular expressions.

Author:
Mattias Bogeblad

Method Summary
static boolean match(java.lang.String pattern, java.lang.String string)
          Checks if the specified string contains the specified pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

match

public static boolean match(java.lang.String pattern,
                            java.lang.String string)
Checks if the specified string contains the specified pattern.

Parameters:
pattern - the pattern to search for (perl5 native format).
string - the string to perform the search on.
Returns:
true if the string contains the pattern; false otherwise.


Copyright © 2005 InfoGlue.org All Rights Reserved.