Handbook
Glossary
<regexp> ( string -- regexp )
Regular expressions
ยป
Constructing regular expressions
Prev:
R/
Next:
<optioned-regexp> ( string options -- regexp )
Vocabulary
regexp
Inputs
string
a
string
Outputs
regexp
a
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
IN:
regexp
:
<regexp>
( string -- regexp )
""
<optioned-regexp>
;