• I am trying to make a redirection that keeps the 7 digit number in the middle of a link. For example in this link:
    https://www.embedded.com/design/prototyping-and-development/4461454/IIoT-edge-development—Using-WebSockets

    I want to keep the number 4461454. I want everything BEFORE and AFTER to be removed.

    I have tried a regex rule like this with some limited success however if there are numbers before or after the ones I want to keep it won’t work.

    EXAMPLE:

    FROM:
    \/(\d+)\/.{0,}

    TO:
    /index.php?p=$1

    I’m looking for a simple regex that will just keep the 7 digit numbers for the link and IGNORE everything before and after. Also, I’ve considered using 2 sets of rules but not sure what rules to use for the second set. Any help would be greatly appreciated!

    Thanks

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

  • The topic ‘Regex, how to redirect and keep the MIDDLE of link’ is closed to new replies.