Extracting IP address from a character array returned by ESP8266 module

Why isn't the string to parse input, too? I hate code that overuses global variables.

Now, do you know how to parse "192.168.1.117" or "5c:cf:7f:65:fa:00"?

strtok() would be handy.