It all depends on what I'm doing... If it's a script that I'll use more than once, I tend to lean towards readability. If it's an obfuscation, I go for confusion of course.
For what should be obvious reasons, these are some of my personal favorites:
s@{.*?}@{$sub[$n++]}@g;
s${.*?}${$sub[$n++]}$g;
s%{.*?}%{$sub[$n++]}%g;
s={.*?}={$sub[$n++]}=g;
In reply to Re: Whats your favorite nonstandard regex quote char?
by Mr. Muskrat
in thread Whats your favorite nonstandard regex quote char?
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |