in reply to Re: Replacing nth occurrence of stringin thread Replacing nth occurrence of string
my $delimiter = '.'; my $nth = 3; my $regex = '^(' . ('.*\Q' . $delimiter . '\E') x $nth . ')'; [download]
--[ e d @ h a l l e y . c c ]