A RegEx, or Regular Expression, is a sequence of characters that forms a search pattern. RegEx can be used to check if a string contains the specified search pattern.

The term regular expression comes from mathematics and computer science theory, where it reflects a trait of mathematical expressions called regularity

Aditi Phalke

MSc Computer Science Student at ICCS, Pune.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store