Next: Special pattern matching character
Up: Regular Expressions
Previous: What are regular Expressions
A regular expression is essentially a template or pattern to be
matched against a string.
In Perl a regular expression is enclose inside two slashes: /regular_expression/
The regular expression may contain:
- Ordinary text to be matched to an exact pattern (or sub pattern)
- Special operator characters -- characters that have a special meaning and control how we
match patterns
dave@cs.cf.ac.uk