My regex search/replace works outside the plugin but not in the plugin – why?
-
Hey everyone. Some background:
On many posts, a friend has a WordPress site where she’s used a bunch of repeated characters, as a divider: ////////////. I want to change any length of /////’s over 2 in a row to an <hr> tag.
I can’t do regex search/replace in phpMyAdmin, so what I would normally do is search for this:
/{3, 500}
However, this does not work in the Search Regex plugin. I get the error,
“Invalid regular expression: No ending delimiter ‘/’ found”
Can anyone please tell me what I’m doing wrong? What’s the syntax I need to use in this plugin to accomplish the same thing? Not the worst thing in the world, but if possible, I really don’t want to download the tables, do search/replace on the text, and re-load wp_posts. Thanks!
- The topic ‘My regex search/replace works outside the plugin but not in the plugin – why?’ is closed to new replies.