Replace forward slash “/ ” character in JavaScript string? June 9, 2023 by Tarik You need to escape your slash. /\//g