
StringMatches |
ptolemy.actor.lib.string.StringMatches |
Pattern match a string to a regular expression and output a true if it
matches and a false if it does not. For a reference on regular
expression syntax see:
http://java.sun.com/docs/books/tutorial/extra/regex/index.html.
Author(s): Antonio Yordan-Nones, Colin Cochran (contributor Edward A. Lee)
Version:$Id: StringMatches.java,v 1.19 2005/07/08 19:56:37 cxh Exp $
Pt.Proposed Rating:Green (djstone)
Pt.Accepted Rating:Green (eal)
output
Output is true if the pattern exists in the string, false otherwise.
Its type is boolean.
matchString
The string to be pattern matched to the regular expression.
pattern
The regular expression to be pattern matched with the
matchString string.
Its default parameter is an empty string that matches no strings.