replace dashes with spaces in $1 variable
-
I’m trying to redirect using regex but replace characters
FROM examples:
/search/XX/City/Zip/ID/123-East-Main-Street/
/search/XX/City/Zip/ID/123-Main-St/TO:
/results/?keyword=123%20East%20Main%20Street
/results/?keyword=123%20Main%20StBasically I am grabbing the 5th group via regex but I want to replace the dashes (-) with URL encoded spaces (%20).
Can I do that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘replace dashes with spaces in $1 variable’ is closed to new replies.