Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Godley

    (@johnny5)

    You don’t need to escape the / and the /g will not work – it will look for /g on your URL.

    Thread Starter digisavvy

    (@digisavvy)

    So, this still isn’t working for me, which makes me sad because I was super proud I came up with a regex thing that seems to work. =)

    Screener of redirect.

    I’ve tried adding a dollar sign but that doesnt work either and nukes my match in the regex tester. Halp.

    Plugin Author John Godley

    (@johnny5)

    Your original regex looks fine, but you don’t need the /g flag as that is not part of the regular expression. If you use https://regex101.com/ then it is not shown as part of the expression.

    The new one won’t match as it doesn’t include the leading /. When I said you don’t need to escape the / this meant you can put / instead of \/

    Thread Starter digisavvy

    (@digisavvy)

    Thanks again for the swifty replies, John! We’re working now.

    This /Physician\-Directory(.*) did the trick.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Regex Redirect’ is closed to new replies.