RegExp.lastMatch

The last matched characters. $& is another name for the same property.

Property of RegExp
Static, Read-only

Description

Because lastMatch is static, it is not a property of an individual regular expression object. Instead, you always use it as RegExp.lastMatch.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.