I have a Go Program where I need to search through multiple strings for a specific pattern. The Strings all look like this:
Destination: 149.164.31.169 (149.164.31.169)
I'd like to just extract the IP 149.164.31.169, either the middle one or the one in parenthesis, they will always be the same. In Java I would do something along the lines of using a string tokenizer to gather the part of the string I need, but I didnn't find a function similar in go.
Does anyone know how I can achieve this?