From http://www.w3schools.com (Copyright Refsnes Data)
JavaSript RegExp Object
The n$ quantifier matches any string with n at the end of it.
|
new RegExp("n$") or /n$/ |
ExampleDo a global search for "is" at the end of a string:
The marked text below shows where the expression gets a match:
Try it yourself » |
JavaSript RegExp Object
From http://www.w3schools.com (Copyright Refsnes Data)