Replace/remove everything between two characters
javascript, regex
Solution
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
console.log( alphabet.replace(/H.*S/, 'HS') )
Or just:
var alphabet = "ABCDEFGHSTUVWXYZ";
Problem
``` var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; ``` How can I remove everything between `H` and `S` so that the outcome would be `ABCDEFGHSTUVWXYZ`?