Regular expressions is a powerful way of doing search and replace in any strings, a regular expression describes a pattern of characters.
Patterns and flags
just like quotes for strings.
var str = "WebTrainingRoom.Com is a eLearning Platform";
||Perform case-insensitive matching
||Perform a global match (find all matches in given string rather than stopping after first match)
||Perform multiline matching
Bracket is used for finding a range of characters:
Methods of RegExp and String
||Find any character between the brackets
||Find any character NOT between the brackets
||Find any character between the brackets (any digit)
||Find any character NOT between the brackets (any non-digit)
||Find any of the alternatives specified