find content in a string

I have website source code in a string.

There are many menu content in a string like as

"<a class=\"menucontent\".... "

I want to find and show above lines from a string, how i will do that?

I don't want save a string to file and find it with with strstr (i know how i will do that), i want just find a content directly from a string.
Last edited on
Topic archived. No new replies allowed.