//echo -a $regex(This is a test server 123.123.143.123 Go check it out!,/((\d{1,3}\056){3}\d{1,3})/) $regml(1) notethis asumes all the digits in the IP have a range of 0-255 266.266.266.266 would return 1 as well.
You can reference to what you enclose in ()'s with $regml later on, it returns 1 meaning it matched 1 times.