Regular Expression
The regular expression is an algebraic expression for text search strings. It defines a representation to match a set of strings. The basic format of regex is /<regex>/ e.g. /love/ matches lover, but not Love. Regex is case-sensitive. Disjunction of A character The [] is used to represent character disjunction (or). e.g. /l[ai]ke/ matches like, lack. The place at the second character is either i or a. Match a range of characters Inside the [], using - can represent a range of characters, for instance....