RegExp.rightContext
syntax: |
RegExp.rightContext |
description: |
This property has the text after, that is, to the right of, the text matched by the last pattern search. RegExp.leftContext is equivalent to RegExp["$'"], for compatibility with PERL.
Read-only property.
|
see: |
RegExp.lastMatch, RegExp.leftContext
|
example: |
var str = "one two three two one"; var pat = /(t.o)/ pat.exec(str); // RegExp.leftContext == " three two one" |