I am trying to create a regex to match a URL. It should match any URL, unless it contains the string /wp-* (where * is any one or more characters)
I’ve been playing with an online regex creator for an hour but can’t figure it out. The closest I got was:
^.*(?!/wp-.*)
Based on this SO question it should work, yet it does not. I suspect the first .* is greedy and so matches everything…but am at the limit of my regex skills.