Optional modifiers: g replaces all occurrences of the pattern; e evaluates the replacement string as a perl expression; for the other modifiers, see /pattern/ matching.
If you have ever used the 'find' or 'search and replace' features of a text editor, you have used a form of pattern matching already.
By default, when a quantified subpattern does not allow the rest of the overall pattern to match, perl will backtrack.
li>
However, this behaviour is sometimes undesirable.
A pattern is a sequence of characters to be searched for in a character string.
Optional modifiers: g replaces all occurrences of the pattern; e evaluates the replacement string as a perl expression; for the other modifiers, see /pattern/ matching.
If you have ever used the 'find' or 'search and replace' features of a text editor, you have used a form of pattern matching already.
By default, when a quantified subpattern does not allow the rest of the overall pattern to match, perl will backtrack.
li>
However, this behaviour is sometimes undesirable.
A pattern is a sequence of characters to be searched for in a character string.