javascript regex rab String

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