in reply to want regex to find 2nd and 3rd occurence of a character

You don't want to do that with regexes.

Regexes are very powerful, but if you try to do too much with them, the regexes grow very fast in complexity, and you end up with a piece of mess that you can't maintain.

Use ordinary perl code to postprocess your results instead.

  • Comment on Re: want regex to find 2nd and 3rd occurence of a character