Title: regexp with underscore problem
Last modified: March 16, 2022

---

# regexp with underscore problem

 *  Resolved [TwoBrands BV](https://wordpress.org/support/users/webworkx/)
 * (@webworkx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/)
 * Is there a way to get this regexp redirect working
 * ^/tip_category/(.*)
    /something/$1
 * Escaping the underscore is not working, the problem must be in that.
 * Hope there is a solution.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/#post-15465725)
 * The underscore does not need escaping. What problem are you experiencing?
 *  Thread Starter [TwoBrands BV](https://wordpress.org/support/users/webworkx/)
 * (@webworkx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/#post-15467430)
 * Redirection is not working, if i change it to tipcategory without underscore 
   it is working. But since my category slug contains the underscore it is not a
   solution ofcourse
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/#post-15467459)
 * An underscore is no different from any other character and does not cause issues
   or need any special treatment. The problem will be caused by something else other
   than Redirection.
 * How is it not working? Do you have a URL?
 *  Thread Starter [TwoBrands BV](https://wordpress.org/support/users/webworkx/)
 * (@webworkx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/#post-15468524)
 * Thanks, caching was the problem!!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘regexp with underscore problem’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [TwoBrands BV](https://wordpress.org/support/users/webworkx/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/regexp-with-underscore-problem/#post-15468524)
 * Status: resolved