This should work:
$field =~ s/ (?<!C) # not preceeded by "C" (?:\\|\/) # back or forward slash (?!O) # not succeeded by "O" | (?<!\d) # not preceeded by digits (?:\\|\/) # back or forward slash (?!\d) # not succeeded by digits / & /xg; # replace with '&' (globally)
Nope; wrong. I realised my blunder right after posting.
Makeshifts last the longest.
In reply to Re: Regex Question
by Aristotle
in thread Regex Question
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |