<regexp> ( string -- regexp )
Regular expressions ยป Constructing regular expressions

Prev:R/
Next:<optioned-regexp> ( string options -- regexp )


Vocabulary
regexp

Inputs
stringa string


Outputs
regexpa regexp


Word description
Creates a regular expression object, given a string in regular expression syntax. When it is first used for matching, a DFA is compiled, and this DFA is stored for reuse so it is only compiled once.

Definition

: <regexp> ( string -- regexp ) "" <optioned-regexp> ;