Extracting IP address from a character array returned by ESP8266 module

Thankyou, that works perfectly to find the IP.
I wish I could see how it works but I really struggle with C. I spent many years writing BASIC so tend to find myself thinking in BASIC and trying to translate into something the Arduino will understand.
As soon as pointers enter the equation I start to get lost

The incoming string contains both lines in my original post, along with &

it display like this
+CIFSR:STAIP,"192.168.1.117"
+CIFSR:STAMAC,"5c:cf:7f:65:fa:00"
OK

but is actually the IP line, MAC line OK all contained in the character array

Your code works perfectly to find the IP address as that is the first line (and is what I was after)

Would it be possible to make it more multipurpose so if I fed it the search text (eg STAIP or STAMAC) it would return what was between the quotes after that entry please?

eg I can call the function with BetweenQuotes("STAIP") and it would return the IP or BetweenQuotes("STAMAC") and it would return the MAC address