So what are the monks at large opinion on this ever so trivial a subject? Which alternate regex delimiter do you favour? And what are the arguments behind your opinion (if any)?My quote character of choice when subsituting is the curly brace pair e.g
And for anything but the simplest of regexes (that can't be fielded off to the likes of index()) the /x modifier is a must. I also use parentheses as the replace part of a substitute.s{ ( \w+ ) [ ] ( \w+ ) }($2 $1)xg;
My reasoning is that curly braces look like a block and parentheses look like execution (or at least that's how it mnemonically maps in my head).
HTH
_________
broquaint
In reply to Re: Whats your favorite nonstandard regex quote char?
by broquaint
in thread Whats your favorite nonstandard regex quote char?
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |