Syntax with modifiers:
new RegExp("^m", "g")
Example 1: This example matches the presence of word ‘Geeks’ at the beginning of the string.
Found 2 matches: Geeks,Geeks
Example 2: This example replaces the character ‘@’ with ‘#’.
New string: #128Geek
Supported Browsers: The browsers supported by RegExp ^ Quantifier are listed below:
- Google Chrome
- Apple Safari
- Mozilla Firefox
My Personal Notes arrow_drop_up
Please Login to comment...