From http://www.w3schools.com (Copyright Refsnes Data)
JavaSript RegExp Object
The n^ quantifier matches any string with n at the beginning of it.
|
new RegExp("^n") or /^n/ |
ExampleDo a global search for "Is" at the beginning 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)