A Regular Expression is a syntax that allows you to match strings with specific patterns. A regular expression adds the ability to use quantifiers, pattern collections, special characters, and capture groups to create extremely advanced search patterns. Regex can be used any time you need to query string-based data, such as analyzing command line output.

14m read timeFrom dev.to
Post cover image
Table of contents
What does a regex look like?How to read (and write) regexesHow to use a regexFlagsGroupsPutting it all together
14 Comments

Sort: