Title: Redirection Plugin Regex Replace
Last modified: August 20, 2016

---

# Redirection Plugin Regex Replace

 *  [wonderm](https://wordpress.org/support/users/wonderm/)
 * (@wonderm)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/redirection-plugin-regex-replace/)
 * Hello,
 * I am tyring to replace all – from a string.
 * **String:**
    2001-cars-i-love
 * **I want it to be:**
    2001+cars+i+love
 * **Regex URL:**
    /cars/([0-9]+)-(.*)/
 * **Target URL:**
    /?s=$1+$2
 * How do I replace all the dashes in $2?
 * Thank you
 * Fais

The topic ‘Redirection Plugin Regex Replace’ is closed to new replies.

## Tags

 * [regex](https://wordpress.org/support/topic-tag/regex/)

 * 0 replies
 * 1 participant
 * Last reply from: [wonderm](https://wordpress.org/support/users/wonderm/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/redirection-plugin-regex-replace/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
