JavaScript RegExp m Modifier
JavaScript RegExp m Modifier
The m modifier is used for specifying the multiline match. In this, $ is used to specify the match at end of the string while ^ is used to specify the match at the start of the string.
Syntax:-
Its syntax is:- new RegExp("regexp", "m") OR /regexp/m
Return:-
Its return is:- matched value