Regular Expressions JavaScript Tutorial

The RegExp.$` property represents the substring preceding the most recent pattern match.
This is the same as using the leftContext property.