Extracting IP address from a character array returned by ESP8266 module

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?

Yes, it would. Have at it. You just might learn something.