JavaScript » RegExp » $'

See the rightContext property.