I'm using a regex pattern to locate a string to be deleted, which is delimited by two strings (say, "START" and "FINISH"). So it's STARTsome_string_to_deleteFINISH
Problem is that START and FINISH strings are html tags which have < > characters.
When I use online regex testers, they pattern works fine but when I insert the expression in Wordpress plugins that I use (e.g. WPEMatico that handles RSS to New Posts), I keep getting errors.
I tried escaping special characters with backslash. Doesn't work.
Any advice?
Here's an example of the string I used:
==========================================
(\<!-- Facebook Comments Plugin for WordPress).+?(<\/comments>)
==========================================