my $delimiter = '.'; my $nth = 3; my $regex = '^(' . ('.*\Q' . $delimiter . '\E') x $nth . ')';
--
[ e d @ h a l l e y . c c ]
In reply to Re^2: Replacing nth occurrence of string
by halley
in thread Replacing nth occurrence of string
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |