1) My string is below
% set a {
absdsdgfg
dsdgsdg
sdgsdgsd
asdas192.168.2.1
asdfsdf
sdfsdf
10.10.10.1
}
absdsdgfg
dsdgsdg
sdgsdgsd
asdas192.168.2.1
asdfsdf
sdfsdf
10.10.10.1
2) Regular expression is
% regexp {.*(\d+\.\d+\.\d+\.\d+).*} $a -> ip
1
3) Output
% set ip
0.10.10.1
%
In the Step Number - 3 I am getting the output as 0.10.10.1 . Why I am missing 1 here? It is a number it should match with \d, but why it is maching with (.*).