Whenever I see a regex like this I start thinking about split or unpack (if it's more fixed length).
An example with split:@foo = split /\s+/; ($laddr,$lport) = (split(/:/,$foo[1]),split(/:/,$foo[2]));
| Just me, the boy and these two monks, no questions asked. |
In reply to Re: problem with regex
by grep
in thread problem with regex to extract netstat info
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |