After a match against some variable $var: * $` is the same as substr($var, 0, $-[0]) * $& is the same as substr($var, $-[0], $+[0] - $-[0]) * $' is the same as substr($var, $+[0]) * $1 is the same as substr($var, $-[1], $+[1] - $-[1]) * $2 is the same as substr($var, $-[2], $+[2] - $-[2]) * $3 is the same as substr($var, $-[3], $+[3] - $-[3])
In reply to Re: Get all captured substrings after a substitution
by kennethk
in thread Get all captured substrings after a substitution
by Polynomial
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |