in reply to Replace not working
(I use them rather a lot, and it has taken a while for me to remember the syntax for them -- I've done "perldoc perlre" many times to check on it.)
$_ = "...blah-blah*G-Y*blah-blah... here is another G-Y and-so-on"; print "BEFORE: $_\n"; s/(?<=G)-(?=Y)/ /g; print " AFTER: $_\n";
|
|---|