Skip to content

Instantly share code, notes, and snippets.

@candh
Last active December 7, 2016 06:50
Show Gist options
  • Save candh/6f1cafdfe2b68154b5a5442e85f6eb7e to your computer and use it in GitHub Desktop.
Save candh/6f1cafdfe2b68154b5a5442e85f6eb7e to your computer and use it in GitHub Desktop.
Basically replaces "h"s with "H"s. In honor of ScHoolboy Q's new album.
var vrse = "schoolboy" // insert verse here
var res = vrse.replace(/h/gi, "H");
console.log(res)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment