O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 13 de 33 · Mídia

Regex

Kostas Diakogiannis

Regex

Regular Expressions

Hopefully there is a solution to that! Instead of trying to validate strings in different combinations and character by characters we can achieve everything in one line! How?

Regular Expressions come to the rescue! 

Regular expressions are a compact way to define in one line an abstract layout of how an accepted string (or value that comes from data) should look like.

Be careful! Regular expressions (or RegEx as they are called for economy), are no subject to JavaScript as language. They are only a way to define patterns and they work well with many other languages as well (python, ruby etc).

Let's leave aside the 'how' and focus a bit on 'why'. Especially what is the problem they solve?

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?