IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.util.regex
Interface IRegEx

All Known Implementing Classes:
ApacheRegExp, JavaRegExp

public interface IRegEx

Interface for Regular expression


Method Summary
 java.lang.String getMatch()
          Returns the part of the string that matched the pattern.
 java.lang.String getMatch(int index)
          Returns the substring that matched one of the parenthesized subexpressions of the regular expression.
 int getMatchCount()
          Returns the number of parenthesized subexpressions in the regular expression.
 int getMatchFlags()
          Return the match flags
 boolean matches(java.lang.String stringToCompare)
          Determines whether the regular expression pattern matches the provided string.
 

Method Detail

matches

boolean matches(java.lang.String stringToCompare)
Determines whether the regular expression pattern matches the provided string.


getMatch

java.lang.String getMatch()
Returns the part of the string that matched the pattern. This is the same as getMatch(0).


getMatch

java.lang.String getMatch(int index)
Returns the substring that matched one of the parenthesized subexpressions of the regular expression. The index indicates which substring should be returned. An index of 0 returns the entire matched string, an index of 1 returns the matched substring for the first parenthesized subexpression of the regular expression, etc.


getMatchCount

int getMatchCount()
Returns the number of parenthesized subexpressions in the regular expression.


getMatchFlags

int getMatchFlags()
Return the match flags

Returns: