Regular expression combinators - Factor Documentation (original) (raw)
The regexp.combinators vocabulary defines combinators which can be used to build up regular expressions to match strings. This complements the traditional syntax defined in the regexp vocabulary. Regular expression combinator rationale
Higher-order combinators for building new regular expressions from existing ones:
( regexps -- conjunction )
( regexp -- not-regexp )
( regexps -- regexp )
( regexp -- regexp* )