![]() Regular Expression Literal - Syntax /pattern/flags var regexGlobal = /abc/g console.log(regexGlobal.test('abc abc')) // it will match all the occurence of 'abc', so it won't return // after first match. ![]() Note that their order doesn’t have any effect on the result. You can also combine the flags in a single regular expression.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |