How to extract an IP using "word boundary"
Posted on 2015-02-10
Hi, I have a very simple regex to find IP addresses in this format: 22.214.171.124
When presented with a string that contains something like 135.231.351.209, it will capture 5.231.351.209, but i don't want it to. I only want it to capture the IP's that come in the form x.xxx.xxx.xxx. I had a look at the "word boundary" option (\b) and it seems like it's what I need, but I'm foggy on the usage of it. Could anyone shed some light please?