Trying to create a pattern that includes an or condition.
$pattern["body"]='/(<\/a><\/li><\/ul><\/div><p>|<h2>)(.*)<div class="like">/s';
The pattern should recognize any text between a series of "<\/a><\/li><\/ul><\/div><p>
" or a "<h2>
" as the beginning delimiter, but apparently the or condition does not work in this case.
Anyone can offer a hint for the correct syntax!? I am striving for 1 hour and I have lost the focus and patience in this rule.
THank you in advance.