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