JavaScript RegExp tutorial

A regular expression refers to the object which represents the pattern of characters. JavaScript provides the RegEx class which provides the pattern-matching and search-and-replace functionality on text. Syntax: /pattern/modifiers Modifiers Modifiers are used to perform case-insensitive and global searches. Modifier Description g It is used to find all matches. i It is used to perform case-insensitive … Read more