RegEx means Regular Expression. RegEx is a sequence of characters and symbols that specifies a search pattern. 

What is RegEx (Regular Expressions) ?

What is RegEx used for?

RegEx is used in search engines, search and replace dialogs of word processors and text editors. Many programming languages like Java, Python, JavaScript etc. provide regex capabilities either built in or via libraries.

There are some use of RegEx:

  • RegEx used for verify the structure of strings. For example verify email and domain name.
  • RegEx used for extract substrings form structured strings.
  • Regex used for search, replace and rearrange parts of string.
  • Regex used for split string into parts.

RegEx Syntax

The syntax of regex is written using characters and symbols. It is also called a pattern. We make different patterns according to our needs. The regular expression given below is used to validate the email address:

^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ code-box


Now you know what is RegEx (regular expressions)? We will continuously publish posts and keep you updated. You can subscribe to our blog so that you can get all the information related to new technology and you can keep yourself updated.

Post a Comment

Previous Post Next Post