in reply to Re: Whats your favorite nonstandard regex quote char?
in thread Whats your favorite nonstandard regex quote char?
If it is the pairing you can't get used to, you could always just the right side of the pair. :) e.g.
$s =~ s>{.*?} >{$sub[$n++]}>gx; $s =~ s){.*?} ){$sub[$n++]})gx;
Personally I tend to use ! because of the rarity of having to match a ! in a string, or having a negative look-ahead/behind assertions. I do like the way the pipe looks but tend to avoid it because it is the character for alternation.
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Whats your favorite nonstandard regex quote char?
by LAI (Hermit) on Apr 23, 2003 at 14:08 UTC |