All pastes #885493 Raw Edit

arcanez

public text v1 · immutable
#885493 ·published 2008-01-30 22:54 UTC
rendered paste body
 my ($ip) = ($record =~ /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} <UNKNOWN> \[UDP: \[(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\]:\d+\]: /);
# returns the IP

 my ($ip) = ($record =~ s/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} <UNKNOWN> \[UDP: \[(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\]:\d+\]: //);
# returns 1..
#how do I get the latter to match the first?