Perl - Regular Expressions question...
I'm new to Perl and I'm trying to do the following with regular expressions.
For a list of IP addresses.. replace 'all' of the forth octets with astericks. Basically, I'm trying to substitute all digits after the third period with a single asterisk...
So
10.1.1.1
10.1.2.12
would end up like this
10.1.1.*
10.1.2.*
Can anyone help?
Thanks!
|