March 2012
Intermediate to advanced
1136 pages
33h 40m
English
This chapter introduces the library for regular expressions. That library allows you to use wildcards and patterns to search and replace characters in strings.
In principle, you can do the following with regular expressions:
• Match the whole input against a regular expression
• Search for patterns that match a regular expression
• Tokenize a character according to a token separator specified as a regular expression
• Replace in the first or all subsequences that match a regular expression For all these operations, you can use different grammars, which are used to define a regular expression.
I begin this chapter by introducing the various operations, then discussing different grammars, and finally listing the ...
Read now
Unlock full access