Hello I would like to use preg_match in PHP to parse the \"Desired text\" out of the following from a html document
Desired text &
What if the string you're matching has multiple lines and is:
Desired text1 Desired text2 Desired text3
Desired text1
Desired text2
Desired text3
That pattern would match once, and the match would be everything in the string.
I think a better pattern is:
"'([^<]*)'si"
([^<]*)