Next: , Previous: Matching Strings, Up: Strings


6.8 Regular Expressions

MIT/GNU Scheme provides support for using regular expressions to search and match strings. This manual does not define regular expressions; instead see Syntax of Regular Expressions.

In addition to providing standard regular-expression support, MIT/GNU Scheme also provides the REXP abstraction. This is an alternative way to write regular expressions that is easier to read and understand than the standard notation. Regular expressions written in this notation can be translated into the standard notation.

The regular-expression support is a run-time-loadable option. To use it, execute

     (load-option 'regular-expression)

once before calling any of the procedures defined here.