I hope this is in the correct category... I need help with regex... this is the sample data
class=\"primaryAction\" href=\"\/realestateandhomes-Detail\/974-Heritage-Way_Sandy-Winters_GA_90358_M59462-51865\"><em>
AND
class=\"primaryAction\"><em>
I need to be able to catch anything that has class=\"primaryAction\" with the optional href attribute and then an <em> tag.
This is what I'm using, but it isn't working:
REGEX:
class=\\"primaryAction\\" (?:\b[^>]*)?
It should return the following for each example above:
class=\"primaryAction\" href=\"\/realestateandhomes-Detail\/974-Heritage-Way_Sandy-Winters_GA_90358_M59462-51865\"
class=\"primaryAction\"
Could one of you help me?
I'll really appreciate it!
Edit: I figured out: class=\"primaryAction\"[>]*
Mod: Delete this post if possible 😉