Support » Plugin: 404 Solution » RegEX not working

  • Resolved Harald Wenzel

    (@epiphanius1)


    Hello,
    when I use this regex /\/\d{1,2}\// (I want to divert any url with two digits between slashes) – it shows up as //d1,2// and of course, it doesn’t work. I did test the regex before entering it. Do you have a solution?
    Thanks a lot.
    Harald

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron

    (@aaron13100)

    You need to use a capture group using parenthesis () and a replacement using $1 which I don’t see in your pattern.

    Use https://regex101.com/ (for example) to test it by clicking the “substitution” link at the bottom.

    Harald Wenzel

    (@epiphanius1)

    Hello,
    thanks, will try.

    Plugin Author Aaron

    (@aaron13100)

    I’ll assume this is solved since there’s been no reply for the last 2 weeks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RegEX not working’ is closed to new replies.