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 Verbs

Summary

regex.compile
 
Compiles a regular expression for use by the regex.match and regex.search verbs.

regex.easyMatch
 
Attempt to match a regular expression to a target string at a specific position in the string. This verb encapsulates all calls to the necessary lower level vebs to perform a match.

regex.easySearch
 
Attempt to match a regular expression to a target string at successive positions commencing at a specified position in the string. This verb encapsulates all calls to the necessary lower level vebs to perform a search.

regex.extract
 
Extracts all matches to a regular expression in the target into a list.

regex.free
 
Free memory allocated to a compiled regular expression by the regex.compile verb.

regex.grep
 
For each line in an object, or each element in a list, return all lines or elements that match a regular expression.

regex.init
 
Initializes the regex extension for use by other regex verbs.

regex.join
 
Places all items in a list into a single delimited string object.

regex.match
 
Attempt to match a regular expression to a target object at a specific position, providing the object can be coerced to a string.

regex.quoteRE
 
Escape all metacharacters in a string.

regex.search
 
Tries to match a regular expression to a string at successive positions starting from a specified position in the string.

regex.split
 
Breaks up a string into parts delimited by a regular-expression.

regex.subst
 
Replace all matches of a regular expression with a new string.

regex.visit
 
Call a script for each and every match to a regular expression.



 [ Previous ]  [ Next  To the top  

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