Regular Expression Patterns : Pattern matching « Regular Expression « Perl
- Perl
- Regular Expression
- Pattern matching
Regular Expression Patterns
Pattern Interpretation
/a/ Looks for any instance of a.
/a+/ Matches one or more instances of a.
/a*/ Matches zero or more instances of a.
/a?/ Matches zero or one instance of a.
/a|b/ Matches either a or b.
Related examples in the same category