ciąg regex w JavaScript

"Foo bar cat".replace(/(cat)/ig, "<em>$1</em>");
Scary Shrike