in reply to Using special characters in left part of a regex match?
$var[$j] =~ s/\.\.\./\.\+/g;
The right half of an s/// substitution is not a regex, but a mere string. So if you want to construct .+ in the replacement, you need to write it as .+ and not at \.\+.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using special characters in left part of a regex match?
by LanX (Saint) on Feb 06, 2013 at 00:14 UTC |
In Section
Seekers of Perl Wisdom