2.9: Regular Expressions: replace() - Programming with Text

Veröffentlicht am: 19 September 2016
auf dem Kanal: The Coding Train
76,104
1.6k

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:    • Coding Challenge #38: Word Interactor  

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

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

Support this channel on Patreon:   / codingtrain  

Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbo...

Contact:   / 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...
Regular Expressions on Wikipedia: https://en.wikipedia.org/wiki/Regular...
Book Mastering Regular Expressions: http://shop.oreilly.com/product/97805...
ITP from Tisch School of the Arts: https://tisch.nyu.edu/itp

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

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

For More Programming from A to Z videos: https://www.youtube.com/user/shiffman...

For More Coding Challenges:    • Coding Challenges  

Help us caption & translate this video!

http://amara.org/v/Vy9V/

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


Auf dieser Seite können Sie das Online-Video 2.9: Regular Expressions: replace() - Programming with Text mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Coding Train 19 September 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 76,104 Mal angesehen und es wurde von 1.6 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!