0

Hi All,

I am trying to find matches wherever there is an ip address in the xsl and xml files under a parent directory(It contains subdirectories as well). In MS Dos below command doesnt work.

Could anyone please give me the perl snippet to find the ip address matches?

findstr /r "/^(?:(?:1\d?\d|[1-9]?\d|2[0-4]\d|25[0-5])\.){3}(?:1\d?\d|[1-9]?\d|2[0-4]\d|25[0-5])$/" *.xsl

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by wickedxter
0
my $ip = 'this once was a cat name 204.158.156 but was 69';

$ip =~ /(\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3})/g;

print $1;

Edited by wickedxter: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.