I am having some trouble on writing some strings I want to use in PHP syntax with preg_match_all.
All I managed to do correctly is to write <span style="">
to $regex_pattern = "/\<span style=\"color: red;\"\>(.*?)\<\/span\>/i";
but can't do any further than that.
I mean I cant write correctly <h3 class=''>
or get the link between <h3 class=""><a href="
and </a>
.
Please help me with the above and give me some examples if you want or any online tools for this.
Thanks in advance!