2.9: Regular Expressions: replace() - Programming with Text
In this video, I cover the JavaScript function replace(). The function allows you to search for a string (by matching a regular expression) and replace that string. The replacement can be a literal string itself or you can pass in a callback where you can use logic and programming to generate a replacement string based on anything you can imagine.
This is the ninth 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/AKuW48WeNMA
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/Vy9V/
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
Видео 2.9: Regular Expressions: replace() - Programming with Text канала The Coding Train
This is the ninth 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/AKuW48WeNMA
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/Vy9V/
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
Видео 2.9: Regular Expressions: replace() - Programming with Text канала The Coding Train
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
2.1: Introduction to Regular Expressions - Programming with TextCoding Challenge #38: Word InteractorLearn Regular Expressions In 20 MinutesLearn Regular Expressions (Regex) - Crash Course for BeginnersRegular Expressions (Regex) Tutorial: How to Match Any Pattern of Text2.4: Regular Expressions: Capturing Groups - Programming with TextREGEX (REGULAR EXPRESSIONS) WITH EXAMPLES IN DETAIL | Regex Tutorial2.6: Regular Expressions: test() and match() - Programming with TextMandelBulb 3D Fractal (Coding Challenge 168)2.8: Regular Expressions: split() - Programming with Text2.7: Regular Expressions: exec() - Programming with TextTypeScript - The BasicsThe Prime Number Spiral (Coding Challenge 167)Python for Everybody - Full University Python CourseRegular Expressions (Regex) in JavaScript - tutorialJS Spread Operator: How It Works & Why I Love ItPython Tutorial: re Module - How to Write and Match Regular Expressions (Regex)JavaScript Higher Order Functions & Arrays