So I have a string I'm trying to strip some values from. I've been using this regex tester to try to figure this out to no avail: http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx
This is the string I'm trying to parse:
9 2.27.8.18:2304 63 9dd0e5e7344adac5cf49b7882329df25(OK) Any number of characters follow here
The basic format goes:
INT IP:PORT INT MD5-HASH(OK) STRING
This is as far as I've got so far:
(?<line_id>[0-9]{1,3})(?<ip>.+):(?<port>[0-9]{1,5})(?<guid>.+)\(OK\)(?<name>.+)
And these are the values I've been able to strip so far:
9 (line_id)
2.27.8.18 (ip)
2304 (port)
63 9dd0e5e7344adac5cf49b7882329df25(guid)
Any number of characters follow here (name)
If you try the sample text and pattern I posted above, you can see that I get everything except the integer between the port number and the md5 hash (guid). I'm probably making some amateur mistake as I'm not too experienced with regex patterns so any input would be greatly appreciated.