Perl regular expression questions?

gaiacarra

New member
1. How do I get the number of times a pattern was matched in the text?

2. How do I retrieve the text of the n'th match? IE, if I'm searching for four letter words, and I want to get the second, fourth, and tenth strings that were matched by my pattern, how would I do that?
 
Back
Top