Dear all,
I am working to locate the a pattern match at the end of a line. I have included the code that I use for the pattern match. Using one file, the pattern is matched and located. Using another file the pattern is not matched for some reason. Both files are Windows text files.
The pattern to match is;
Ipaddressort->Ipaddressort(end of line)
EG: 172.34.12.45:8000->10.56.2.1:8443
I am only interested in the second IPaddressort entry, the one to the right of the arrowhead. This IPaddressort entry is effectively at the end of the line.
The code that I have used is;
([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*:d+$)
Would someone please verify the code is fine?
Thanks.
Alf.
I am working to locate the a pattern match at the end of a line. I have included the code that I use for the pattern match. Using one file, the pattern is matched and located. Using another file the pattern is not matched for some reason. Both files are Windows text files.
The pattern to match is;
Ipaddressort->Ipaddressort(end of line)
EG: 172.34.12.45:8000->10.56.2.1:8443
I am only interested in the second IPaddressort entry, the one to the right of the arrowhead. This IPaddressort entry is effectively at the end of the line.
The code that I have used is;
([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*:d+$)
Would someone please verify the code is fine?
Thanks.
Alf.