XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello,
just a quick question. Short scan over a few regexp tutorials didn't lead me to an answer.
outputs: But with another pov one could find 3 occurences of 'aa' in 'aaaa' but I think this is a question of how matching is defined in perl. Is there a way to manipulate the regexp above to match 3 times in the given string or do I have to write my own sub for this task? Any suggestion to do this the "perl way"?
PS: A friend came up with the following, non-experimental :) suggestion
Greetings In reply to multiple matches with regexp by almaric
|
|