Title: [Plugin: Redirection] Regex Bug
Last modified: August 20, 2016

---

# [Plugin: Redirection] Regex Bug

 *  [rfrancorj](https://wordpress.org/support/users/rfrancorj/)
 * (@rfrancorj)
 * [14 years ago](https://wordpress.org/support/topic/plugin-redirection-regex-bug/)
 * When I use a regex like:
 * `^(.*)\.html(/.+|/?)$`
 * Redirection changes it to:
 * `^(.*)\\.html(/\.+|/?)$`
 * At the first `\.html` I really want a literal dot and I’ve put a \ before it…
   And Redirection puts one \ more, breaking the Regex.
 * At the second `.+` Redirection puts one \ before the dot, when I want to say .
   + (any character some times, but at least one)
 * You can correct it, stoping to put erroneous \ at the regex?
 * [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)

The topic ‘[Plugin: Redirection] Regex Bug’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [rfrancorj](https://wordpress.org/support/users/rfrancorj/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-redirection-regex-bug/)
 * Status: not resolved