I'm making a Chrome extension that replaces every instance of a word with a different word, but right now it only replaces the lowercase version, not uppercase. Since I'm not good with regex I thought I'd ask here. What do I need to change to make this regex case insensitive?
var replaced = $("body").html().replace(/hipster/i, 'James Montour');
$("body").html(replaced);