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.
In reply to Re: Simple string parsing help with regex
by lepht
in thread Simple string parsing help with regex
by shadowfox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |