In perl6 it's m:3rd/,/ and .pos will tell you at what position it matched. :-)
In reply to Re: search for nth occurrence of a pattern in a line
by duff
in thread search for nth occurrence of a pattern in a line
by deepa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |