in reply to Quick regex substitution question
You need to search for "look-ahead assertion" in the docs.
As I am no master of this I would do $string =~ s/;(.)/$1/g; assuming that the semikolon is the last character in the string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quick regex substitution question
by jmmach80 (Initiate) on May 29, 2015 at 14:18 UTC | |
by ww (Archbishop) on May 29, 2015 at 16:02 UTC |