preg_match_all('/<p class="row">(.+?)<\/span>(.+?)- <a href="(.+?)">(.+?)<\/a>(.+?)<font size="-1"> \((.+?)\)<\/font>(.+?)<\/p>/is', $HTML, $matches);
I have the following regex, the problem is that only sometimes does the section actually show up. The regex I have requires the font to be there, how can I make it optional?
Not only mkae it optional, but pull a value if it exists
This is working for me:
Further example: