Skip to main content

Regular expressions

@serverSerrverlesskiy

Regular expressions are a formal language for searching and manipulating strings in a text based on the use of metacharacters.

Regular expressions allow you to:

  • Search for text in a string
  • Replace substrings in a string
  • Extract information from a string

search

JavaScript, along with Perl, is one of the programming languages in which regular expression support is built directly into the language.

Difficulty to use#

the complexity of using

The disadvantage of regular expressions is that they often look strange and even intimidating. This is especially true for more complex templates.

let regExp = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/

Payment#

Now you are on a stripped-down version of the site, after subscribing to Patreon, you will get full access to the training course, as well as access to our server's private channels in Discord.

Download our mobile application or get tested in our JavaScript telegram bot, and also subscribe to our news.

Become a Patron!

Sumerian school

Links#

  1. Learn JavaScript
  2. MDN Web Docs
  3. JS RegExp

Contributors ✨#

Thanks goes to these wonderful people (emoji key):


IIo3iTiv

πŸ“–

Dmitriy Vasilev

πŸ’΅

Resoner2005

πŸ› 🎨 πŸ–‹

Navernoss

πŸ–‹ πŸ› 🎨

Become a Patron!