regexp vocabulary
Factor handbook > Vocabulary index


Documentation
Regular expressions

Meta-data
Tags: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


Children from resource:basis
VocabularySummary
regexp.astregexp.ast vocabulary
regexp.classesregexp.classes vocabulary
regexp.combinatorsCombinators for creating regular expressions
regexp.compilerregexp.compiler vocabulary
regexp.dfaregexp.dfa vocabulary
regexp.disambiguateregexp.disambiguate vocabulary
regexp.minimizeregexp.minimize vocabulary
regexp.negationregexp.negation vocabulary
regexp.nfaregexp.nfa vocabulary
regexp.parserregexp.parser vocabulary
regexp.prettyprintregexp.prettyprint vocabulary
regexp.transition-tablesregexp.transition-tables vocabulary


Children
VocabularySummary
regexp.privateregexp.private vocabulary