I am using curl to get a large string on text and basically 3 things could happen the string could contain
-
a div with a unique name inside it for example
"class=\"asl bwd asd\">{Valid user}\u003C\/div>" -
"The email you entered does not exist" -
a div with a unique name inside it for example
"class=\"asl bwd
asd\">{UNIQUE STRING}\u003C\/div>"
could someone help me write 3 separate preg matches so I can then do something if one of the three strings are found. The string will never have more than one of the three strings.
Do not try to parse XML or HTML with Regular Expressions. Neither is fully expressible using RegEx.
Use the XML parser functions of PHP instead.
Or something like PHPQuery (I just found that one, I like the idea)