2.5: Regular Expressions: Back References - Programming with Text

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=Z66TeSTcP-Q



Duration: 4:04
62,394 views
1,484


In this short tutorial, I explain the concept of "back references" and explore how they are used to match the characters previously matched by capturing parentheses (groups) in a regular expression (regex).

This is the fifth video in a series on Regular Expressions, which is part of the "Programming from A to Z" course at ITP (http://itp.nyu.edu).

Next Video: https://youtu.be/W7S_Vmq0GSs

http://shiffman.net/a2z/regex/

Course url: http://shiffman.net/a2z/

Support this channel on Patreon: https://patreon.com/codingtrain

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics

Contact: https://twitter.com/shiffman

GitHub Repo with all the info for Programming from A to Z: https://github.com/shiffman/A2Z-F16

Links discussed in this video:
MDN's Regular Expressions Reference: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions
Regular Expressions on Wikipedia: https://en.wikipedia.org/wiki/Regular_expression
Book Mastering Regular Expressions: http://shop.oreilly.com/product/9780596528126.do
ITP from Tisch School of the Arts: https://tisch.nyu.edu/itp

Source Code for the all Video Lessons: https://github.com/CodingTrain/Rainbow-Code

p5.js: https://p5js.org/
Processing: https://processing.org

For More Programming from A to Z videos: https://www.youtube.com/user/shiffman/playlists?shelf_id=11&view=50&sort=dd

For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

Help us caption & translate this video!

http://amara.org/v/VvIt/

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct







Tags:
back reference regex
backreferences regex
back reference regular expressions
backreferences
regex
regular expression
regular expressions
tutorial
programming for beginners
p5.js
coding
daniel shiffman
javascript
string object
text input
text field
regex javascript
regexp
regular expressions javascript
programming from a to z
intro regex
introduction regex
capturing parentheses
regular expressions groups
regex groups