Remove specific characters from a string in Javascript March 28, 2023 by Tarik Simply replace it with nothing: var string = 'F0123456'; // just an example string.replace(/^F0+/i, ''); '123456'