regexp vocabulary
Factor handbook ยป Vocabulary index


Documentation
Regular expressions

Metadata
Tags:regexp, parsing, text
Authors:Doug Coleman, Daniel Ehrenberg


Words

Tuple classes
ClassSuperclassSlots
regexp tupleraw parse-tree options dfa next-match
reverse-regexp regexp


Parsing words
WordSyntax
R/R/ foo.*|[a-zA-Z]bar/options


Ordinary words
WordStack effect
<optioned-regexp>( string options -- regexp )
<regexp>( string -- regexp )
all-matching-slices( string regexp -- seq )
all-matching-subseqs( string regexp -- seq )
count-matches( string regexp -- n )
each-match( ... string regexp quot: ( ... start end string -- ... ) -- ... )
first-match( string regexp -- slice/f )
make-regexp( string ast -- regexp )
map-matches( ... string regexp quot: ( ... start end string -- ... obj ) -- ... seq )
matches?( string regexp -- ? )
new-regexp( string ast options class -- regexp )
re-contains?( string regexp -- ? )
re-replace( string regexp replacement -- result )
re-replace-with( string regexp quot: ( slice -- replacement ) -- result )
re-split( string regexp -- seq )


Class predicate words
WordStack effect
regexp?( object -- ? )
reverse-regexp?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
regexp.ast
regexp.classes
regexp.combinatorsCombinators for creating regular expressions
regexp.compiler
regexp.dfa
regexp.disambiguate
regexp.minimize
regexp.negation
regexp.nfa
regexp.parser
regexp.prettyprint
regexp.transition-tables


Children
VocabularySummary
regexp.private