I'trying to detect if IP address is inside of string for example:
"home 10.10.10.12:443 is connected"
Any of you knows if is regular expression I can use to detect the ip and modify the ip?
I'll really appreciate your help
You can try this regex:
Then, check out this question to learn how to use this Regex in Swift to modify the current ip to a different one:
Swift replace substring regex