It is necessary to remove all numbers from the line. I use

urlall=url.replace(/[^az]/, ''); 

but deletes only one character (number), tell me.

    2 answers 2

    Flags

     url.replace(/[^az]/g, '') 
    • url.replace (/ [^ az] / g, '') only for 5 characters - avengerweb

    If all numbers , then, probably, url.replace(/[0-9]/g, '') :)

    • one
      /\d/ no, not heard - Specter