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