Home / comp / gb.pcre / regexp 
Regexp (gb.pcre)
This class represents a regular expression, with which you can perform matches against various strings and retrieve submatches (those parts of the subject string that match parenthesized expressions.) For example, given the regular expression

brown (\S+)

and subject string

The quick brown fox slyly jumped over the lazy dog

your Regexp object's Text property would be

brown fox

and its Submatches[1].Text property would be

fox

This is just a simple example of what regular expressions can do for you when parsing textual input; they are a very powerful tool. For example, the following regular expression will extract valid email addresses for you:

(?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b

For more information see the PCRE Pattern Man Page.

Symbols
This class is creatable.

Constants 
/comp/gb.pcre/regexp/anchored  /comp/gb.pcre/regexp/badmagic  /comp/gb.pcre/regexp/badoption  /comp/gb.pcre/regexp/badutf8  /comp/gb.pcre/regexp/badutf8offset  /comp/gb.pcre/regexp/callout  /comp/gb.pcre/regexp/caseless  /comp/gb.pcre/regexp/dollarendonly  /comp/gb.pcre/regexp/dotall  /comp/gb.pcre/regexp/extended  /comp/gb.pcre/regexp/extra  /comp/gb.pcre/regexp/matchlimit  /comp/gb.pcre/regexp/multiline  /comp/gb.pcre/regexp/noautocapture  /comp/gb.pcre/regexp/nomatch  /comp/gb.pcre/regexp/nomemory  /comp/gb.pcre/regexp/nosubstring  /comp/gb.pcre/regexp/noutf8check  /comp/gb.pcre/regexp/notbol  /comp/gb.pcre/regexp/noteol  /comp/gb.pcre/regexp/notempty  /comp/gb.pcre/regexp/null  /comp/gb.pcre/regexp/utf8  /comp/gb.pcre/regexp/ungreedy  /comp/gb.pcre/regexp/unknownnode   

Properties  Methods 
/comp/gb.pcre/regexp/offset  /comp/gb.pcre/regexp/submatches  /comp/gb.pcre/regexp/text    /comp/gb.pcre/regexp/compile  /comp/gb.pcre/regexp/exec