in reply to Regex Question
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex Question
by Roy Johnson (Monsignor) on Nov 15, 2005 at 19:47 UTC | |
by Aristotle (Chancellor) on Nov 15, 2005 at 19:58 UTC | |
by Roy Johnson (Monsignor) on Nov 15, 2005 at 20:23 UTC | |
by shemp (Deacon) on Nov 15, 2005 at 20:07 UTC | |
|
Re^2: Regex Question
by ikegami (Patriarch) on Nov 15, 2005 at 19:43 UTC |