$text =~ s/$inpattern/ -- FOUND $1 -- /g;
No doubt this is just a part of a much larger script or perhaps an exercise, but, as I say, I was just curious.
In reply to Re: simple regular expression
by AnomalousMonk
in thread simple regular expression
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |