$field =~ s/ (?<!C(?=.O)) # Look back a character and make sure it's not C-some +thing-O from there (?<!\d(?=.\d)) # Make sure it's also not a digit-something-digit (?:\\|\/) # The something is a slash or backslash / & /xgi;
In reply to Re^2: Regex Question
by Roy Johnson
in thread Regex Question
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |