Title: Regex help
Last modified: August 21, 2016

---

# Regex help

 *  Resolved [tomcho](https://wordpress.org/support/users/tomcho/)
 * (@tomcho)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/regex-help-1/)
 * I need to change blog URLs with this structure:
 * [http://example.com/post/a-b-c](http://example.com/post/a-b-c)
 * to
 * [http://example.com/wp/a-b-c/](http://example.com/wp/a-b-c/)
 * Being a complete newbie to regular expressions, I can’t work out how to do it.
   Can anyone please help?
 * [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [tomcho](https://wordpress.org/support/users/tomcho/)
 * (@tomcho)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/regex-help-1/#post-3855171)
 * Not to worry – I found the answer here!
 * [http://davidwalsh.name/wordpress-category-slug](http://davidwalsh.name/wordpress-category-slug)

Viewing 1 replies (of 1 total)

The topic ‘Regex help’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [tomcho](https://wordpress.org/support/users/tomcho/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/regex-help-1/#post-3855171)
 * Status: resolved