in reply to Simple string parsing help with regex
The first thing that came to my mind when reading your description:
I'd like to strip the slashes from the middle digits to get this format output.
Was this simple substitution:
s{(\d)/(\d)}{$1$2}g;
Which will work on older versions of Perl that don't support the negative look-behind syntax, but may be less robust than those solutions depending on the rest of the input file's contents.
|
|---|