So basically you are looking for foo=" and then want to take the next
characters that is then followed by " or the Quotes is only there for
the example. It that case you are looking for foo= and want the next
characters to then write to a data area. I don't think any generic
string command will do that. You will have to roll your own.