September 2002
Intermediate to advanced
544 pages
13h 6m
English
A regular expression is a way of specifying a pattern that filters text and only matches particular strings. Once a string has been matched, it can be extracted from the larger body of text or replaced with another string. In Perl, another common technique is to use regular expressions as conditions in if statements so that the statement evaluates as True if a particular text string contains text that matches the expression.
Like arithmetic expressions, regular expressions are made up of a sequence of legal symbols linked with legal operators. Table D.1 lists all of these operators and symbols. If you’re interested in investigating regular expressions more deeply, read Jeffrey E. F. Friedl’s Mastering ...
Read now
Unlock full access