ES9
Rest parameters and extension operators
Introduced in ES6, but only for arrays, ES9 provides array-like REST parameters and extension operators for objects
- Rest
- Extended operator
Regular extension – Named capture groups
Name the result matched by the group
You can retrieve the matched information through an array
The named matching information is obtained from the form of the object
Regular extension – Reverse assertion
Check whether the current matching result is correct
Regular extended-Dotall pattern
S means let. Match everything, including newlines
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =