pelagic has asked for the wisdom of the Perl Monks concerning the following question:
somthing apache24 up 11572 Mar 15 16:25 161.20.224.243:8 +808 161.20.224.243:8802 161.20.224.243:8809
qr/ ^\s* (\S+) ## something \s+ (\S+) ## apache24 \s+ (\S+) ## up \s+ (\S+) ## 11572 \s+ (.*?) ## date-time (?: ## start non-cap +turing group for ports* \s+ ( ## PORTS (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [.] (?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}) [:] \d+ ) )+ ## end non-captu +ring group for ports* $ /x
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regexp with repetition of non-capturing group
by choroba (Cardinal) on Mar 16, 2016 at 14:22 UTC | |
Re: regexp with repetition of non-capturing group
by Old_Gray_Bear (Bishop) on Mar 16, 2016 at 15:51 UTC | |
Re: regexp with repetition of non-capturing group
by Marshall (Canon) on Mar 17, 2016 at 00:00 UTC |