The substring following the most recent match. $' is another name for the same property.
Property of
RegEx
Description
Because rightContext is static (read-only), it is not a property of an individual regular expression object. Instead, you always use it as RegExp.rightContext.