This video covers split() — a JavaScript String function, which is used to split a given piece of text into “tokens” based on a “delimiter” as defined by a regular expression.

This is the eighth video in a series on Regular Expressions, which is part of the “Programming from A to Z” course at ITP (

Next Video:

Course url:

Support this channel on Patreon:

Send me your questions and coding challenges!:


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:


For More Programming from A to Z videos:

For More Coding Challenges:

Help us caption & translate this video!