¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 13 de 33 · Multimedia

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?

 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?