SCRIPT MERIDIAN
REGEX PROJECT
 

Regex Home

Download

Documentation

 Regex Verbs
  regex.compile
  regex.easyMatch
  regex.easySearch
  regex.extract
  regex.free
  regex.grep
  regex.init
  regex.join
  regex.match
  regex.quoteRE
  regex.search
  regex.split
  regex.subst
  regex.visit

 MatchInfo Table
 Metacharacters

Pointers

Credits

 

regex.easyMatch

Syntax regex.easyMatch (pattern, s, adrTable, start)
Params pattern is a regular expression or pattern (string).

s is a string object.

adrTable is an optional address to a table that will receive information about the match. Default is nil.

start is an optional number, specifying the position in the string where the match will occur. Default is 1.
Action Tries to match the pattern to the target string, s, at position start.
Returns True if successful, false otherwise.
Examples regex.easyMatch ("<[^>]*>", "<font size = \"-2\">", @temp.matchInfo)
    » true

Notes This verb is similar to regex.match except that it encapsulates all calls to the required lower level verbs regex.compile and regex.free.

The MatchInfo Table outlines the information optionally returned in the table pointed to by adrTable.
See Also regex.match



 [ Previous ]  [ Next  To the top  

Send questions and comments to regex@lists.scriptmeridian.org.
Page last updated: Thu, 10 Dec 1998 21:56:31 GMT.