Introduction to regular expressions Programming


show more Regular expressions are built into many programming languages, including JavaScript. Regular expressions help you figure out the format of your code and are essential in learning the foundations of programming. In this video, you'll learn how to create an expression that describes a specific pattern, how to apply it to a section of code and ask if it matches. show less
please wait ...

Introduction to regular expressions

While strings have some great built-in functionality-- we can convert them to uppercase or lowercase, we can slice pieces out, we can find out if a word exists in the string-- well, sometimes we need a different approach and what we are more interested in is the format of the string. What I mean by that is maybe I want to ask, is it an email address? Not a particular email address, but does it match the pattern for one? Or is it a URL? Perhaps I want to ask if a password has a mixture of uppercase and lowercase letters and special symbols or verify that a credit card number has the correct amount of digits.

Now to do this kind of work many programming languages, including JavaScript, have something called regular expressions built into the language. Regular expressions are strange looking sequences of characters that describe and can match patterns and strings, and nobody finds regular expressions pleasant to begin with. But they're really useful and you should know what they are and ...

Introduction to regular expressions
Video duration: 6m 55s 4h 47m Beginner

Viewers:

Regular expressions are built into many programming languages, including JavaScript. Regular expressions help you figure out the format of your code and are essential in learning the foundations of programming. In this video, you'll learn how to create an expression that describes a specific pattern, how to apply it to a section of code and ask if it matches.

Subjects:
Developer Web
Author:
please wait ...