johngodley / search-regex

Search Regex adds a powerful set of search and replace functions to WordPress that go beyond the standard searching capabilities, with full regex support.
https://searchregex.com
GNU General Public License v3.0
32 stars 9 forks source link

I wonder if it accepts ^ and $ in regular expressions? #178

Open dejudicibus opened 3 months ago

dejudicibus commented 3 months ago

I tried to look for all occurences of that are on a single line, that is

Fred
</a>
George

but not

Fred</a>
George

or

Fred
</a>George

So I used

^</a>$

but found no occurencesin posts, even if they exists. Any idea why?

johngodley commented 3 months ago

I can't tell you why it didn't find any occurences. If the expressions matches then it will return results, otherwise it won't. This must mean your expression doesn't match.