[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.31 Regular expression

Procedures for regular experssion. In these procedures, Java standard regular expression is available.

Reader syntax: #/regexp/[uic]

compiles a regular expression object.
Flags shown as follows are available.

uuse Unicode
icase insensitive
cenable standard equivalence
Function: regexp? datum

returns #t if the object is a regular expression object.

Function: regexp-replace regexp dest-string replace-string

replaces the string using the given regular expression. First occurence will be replaced.

Function: regexp-replace-all regexp dest-string replace-string

replaces the string using the given regular expression. All occurence will be replaced.

Function: regexp->string regexp-object

gets the string representation of the regular expression.

Function: string->regexp regexp

transforms the string to regular expression.

Function: rxmatch regexp-object dest-string

matches the string by the regular expression and returns the matched values as multiple values.

Function: rxmatch-list regexp-object dest-string

matches the string by the regular expression and returns the matched values as a list.

Function: matchrx? regexp-object dest-string

returns #t if the string matches the regular expression.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.