For the most part I understand what it's doing, but could you explain the '*' in the RegEx?
Fascinating. You understand compiled regular expressions, delayed regular expressions, $&, but not '*', one of the most used special tokens in a regular expression?
Anyway, as 'man perlre' could have told you, '*' means that the thing in front of it can be matched zero or more times.
Abigail
In reply to Re: Removing only the first instance with RegEx
by Abigail-II
in thread Removing only the first instance with RegEx
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |