Regex Help?
-
Anyone any good with Regex?
I had a plugin mangle some links and so I ended up with
http://domainname.com/post-title-blabla-blah/domainname.com/subscribe/
http://domainname.com/post-title2-lahde-da-day/domainname.com/subscribe/
http://domainname.com/post-title3-fo-de-dumdas/domainname.com/subscribe/
etc.I’m trying to figure out how to “crop out” the first portion of the URL and redirect it all to target: http://domainname.com/subscribe/
I’ve gotten as far as this but it’s not working (and yes the option box for regex is checked)
^domainname.com/(.*)/(*)/domainname.com/subscribe/
Anyone have any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Regex Help?’ is closed to new replies.