WordPress.org

Ready to get started?Download WordPress

Forums

Redirection Plugin Regex Replace (1 post)

  1. wonderm
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic