|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Regex to parse netstat outputby Abigail-II (Bishop) |
| on Feb 04, 2004 at 10:26 UTC ( #326455=note: print w/ replies, xml ) | Need Help?? |
|
A dot is special in a regex, and will match anything but a newline. So, it will match a digit as well, and that's what is happening here. To match a dot, either put a backslash in front of it, or write is as [.]. You also might want to use Regexp::Common and $RE{net}{IPv4} to match an ip number. Abigail
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||