2.1: Introduction to Regular Expressions – Programming with Text

This video is part of week 2 of the “Programming from A to Z” course at ITP (

In this video I introduce Regular Expressions. What are they and how are they used? I summarize the topics of future videos including meta-characters, capturing parentheses, character classes and JavaScript functions like split(), match(), test(), replace() and exec().

Next Video:

Course url:

Support this channel on Patreon:

Send me your questions and coding challenges!:

Contact:

GitHub Repo with all the info for Programming from A to Z:

Links discussed in this video:
MDN’s Regular Expressions Reference:
Regular Expressions on Wikipedia:
Book Mastering Regular Expressions:
ITP from Tisch School of the Arts:

Source Code for the all Video Lessons:

p5.js:
Processing:

For More Programming from A to Z videos:

For More Coding Challenges:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

25 responses to “2.1: Introduction to Regular Expressions – Programming with Text”

  1. Red Bear Avatar

    I've never hit subscribe so fast

  2. BRASIL989 Avatar

    You're dope man. I wish you were my instructor in college.
    I had an instructor who had me hate everything about regular expressions, now I'm more engaged than ever.
    I blame illuminati

  3. Aedan Valle Avatar

    lol the outro. love it!

  4. stephen twait Avatar

    I seriously hated regular expressions before this video! Moving onto your next video so good job!

  5. Thabang Bosaka Avatar

    I need that software you using, where can I get it

  6. Brendon Ballantyne Avatar

    Thank you for this! No exaggeration, I've been coding for more than 10 years and avoided regular expressions because I literally fall asleep reading about them. And where I really needed one, I'd find a close substitute on google and bumble through it on regex101.
    Your lively presentation kept my interest and I'm going on the next video. Thank you!!

  7. Corey Schafer Avatar

    Hey… just for future reference, you can change the style of anything in Atom to make the text larger. As for the text in the find/replace box you opened up, you could make that text larger by going to Atom -> Styleesheet -> and then putting in a style. Something like this would make it larger:
    atom-text-editor[mini] {
    font-size: 3em;
    }

    If you don't know the name of what you need to change then you can open up developer tools and look them up just like in a Chrome Browser. To do that, you can go to View -> Developer -> Toggle Developer Tools. Just FYI. It may save you some time in post production. Great job on the videos.

  8. abraham gonzalez Avatar

    is so funny learn watching your videos. I´m a little bit disperse but i understand all the things u say, i just love it.

  9. drlegendre Avatar

    Decent series.. but just wtf is with all the incessant and inappropriate laughter?? Like a geeky white Dr. Hibbert or something.

  10. joe smith Avatar

    123-3456 IS FOUND BY d d d – d d d d using these characters d is any numerical character called a meta character
    rainbow in a regex search is composed of literal characters .
    with rainbow .* meta characters regex will find all rainbow combinations

  11. joe smith Avatar

    REGEX WORKS BY FIRST DOWNLOADING THE WEBSITE AND THEN PICKING OUT THE CHARACTERS LIKE PERCENT % OR + AND WRITING THEM DOWN THEN USING THE BROWSER (GOOGLE )TO LOOK AT THE SCREEN WITH THE HTML. U THEN USE REGEX TO SEARCH THE HTML FOR THE % OR + THAT U PICKED OUT OF THE SCREEN THEN U CAN COUNT LEFT OR RIGHT ON THE SCREEN TO GET TO THE CHARACTERS U WANT TO SELECT AND READ IN UR PROGRAM (SCRAPING THE DATA ). THE SLANG NAME FOR THIS IS (SCREEN SCRAPING ).

  12. Ishan Dave Avatar

    Which regex games did you mention in the start of the video I'd like to play some.

  13. David Brown Avatar

    Thanks, this was really fun and interesting to watch. Keep up the great work.

  14. Enmanuel Domínguez Avatar

    you make me feel like a kid but in the good way xD.

  15. hongmi li Avatar

    i'm a teacher,i want to know you how to make the video, can you teach me? i come from china.

  16. hongmi li Avatar

    i'm a teacher,i want to know you how to make the video, do you teach me,i come from china

  17. Brandon Avatar

    Subscribed, you're hilarious — in a good way. 🙂

  18. CobraL0rd Avatar

    I am going to EAT this playlist overnight and probably for tomorrow night too. Wish me luck.

  19. Austin Hughes Avatar

    subscribed within the first 2min of the first vid I've ever seen by this guy b/c not monotone and not annoying.

  20. Theo Hamilton Avatar

    Just came here to learn Regex, already in love with your passion for them 🙂

  21. Sam Khan Avatar

    I just hate 'em

  22. Ryan McGrath Avatar

    Thank you for putting this out for free.

  23. Jared Laufiso Avatar

    What program are you using?

  24. Pencil destroyer Pencils Avatar

    this guy is way too flamboyant its irritating

Leave a Reply

Your email address will not be published. Required fields are marked *