Regular Expressions (Regex) in JavaScript
Regular Expressions (Regex) help us search, match, and manipulate text patterns inside strings.
1. Basic Format of Regex
/pattern/flags
Example:
/hello/g
/ → Start and end of regex
hello → pattern
shubhamsinghbundela.hashnode.dev3 min read