com.p6spy.engine.common

Class GnuRegexMatcher

public class GnuRegexMatcher extends Object implements StringMatcher

Description: Implements the StringMatcher with simple substring matching. With pre-jdk1.4 jvms, this should be the default matching used. $Author: jeffgoke $ $Revision: 1.1 $ $Date: 2002/05/24 07:32:01 $ $Id: GnuRegexMatcher.java,v 1.1 2002/05/24 07:32:01 jeffgoke Exp $ $Log: GnuRegexMatcher.java,v $ Revision 1.1 2002/05/24 07:32:01 jeffgoke version 1 rewrite Revision 1.1 2002/04/22 02:27:04 jeffgoke Simon Sadedin added timing information. Added Junit tests.
Method Summary
booleanmatch(String expression, String value)
Returns true if the given expression is found within the value.

Method Detail

match

public boolean match(String expression, String value)
Returns true if the given expression is found within the value.

Parameters: expression - the expression to find value - the value to look for the expression in

Returns: - true if the expression is found, false otherwise