in reply to regex for Err operator.
Second thought is that at least some (if not most) of the * (0 or more) should be + (1 or more). Without them, the regex will match just the string "//".s#(.*\s*)(.*)\b\s*//\s*(.*)\b#$1defined($2) ? $2 : $3#gm;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex for Err operator.
by Anonymous Monk on Aug 23, 2005 at 18:32 UTC |