use strict; use warnings; my $string = 'gregarious gregarious gregarious'; my $count = 0; $string =~ s/gregarious/$count++ ? "\\underline{gregarious}" : "\\foot +note{gregarious}"/ieg
-enlil
In reply to Re: Combining two Reg Expressions with substitution
by Enlil
in thread Combining two Reg Expressions with substitution
by cranberry13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |