Pathologically Eclectic Rubbish Lister | |
PerlMonks |
regexp with repetition of non-capturing groupby pelagic (Priest) |
on Mar 16, 2016 at 14:19 UTC ( [id://1157933]=perlquestion: print w/replies, xml ) | Need Help?? |
pelagic has asked for the wisdom of the Perl Monks concerning the following question:
Monks! I got a string that I want to analyse, preferably with a regexp. It looks like this e.g.:
The number of 'ip-addresse:port' strings at the end of the line can vary. I seem to have difficulties to catch all information, especialy all occurencies of 'ip-addresse:port' strings. I tried the following regexp:
The thing catches only the last occurence, but iI want all. Any ideas about this? pelagic
Back to
Seekers of Perl Wisdom
|
|