First, I can never remember the exact syntax of the look-around assertions
They're fairly mnemonic, actually:
Personally I might've chosen (?>=PATTERN) and (?>!PATTERN) for lookahead assertions to make the syntax of these symmetric in direction as well (though that would've clashed with non-backtracking patterns), but even this way I still think these are fairly easy to remember.
In reply to Re^4: regex to rename last _ with ,
by AppleFritter
in thread regex to rename last _ with ,
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |