There are addresses

http://cr36465.tmweb.ru/regions/amurskaya-obl_4292259/raychikhinsk_767/ 

how to bring it to the form http://cr36465.tmweb.ru/regions/amurskaya-obl/raychikhinsk/ that is, to clean up the _number ? And what rule to write to handle?

    1 answer 1

    \ d selects any digit.

    all / _ \ d + / replaced with an empty line - what you need

    • joxi.ru/E2peBeqHYwa9AY set up like this, how to get to go to http://cr36465.tmweb.ru/regions/amurskaya-obl_4292259/raychikhinsk_767/ opened without numbers? - Nikolay
    • one
      Depends on the used framework / CMS. The general recommendation is to redirect from 301 to an address without numbers if the numbers in the string are found, and on all pages of the site inside the number to remove before outputting the link attribute - knes