regexp vocabulary
Factor handbook » Vocabulary index


Documentation
Regular expressions

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


Words

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


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


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


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


Files


Metadata files


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