This is certainly cheaper. If capturing can be avoided and this code is important for speed, choose the non-capturing version.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^3: The nth occurrence of a character
by diotalevi
in thread The nth occurrence of a character
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |