Uploaded October 2016 | Updated November 2026, 3 days ago
Let's finish this first section, like a boss!
- - -
This video was sponsored by the DevTips Patron Community - patreon.com/DevTips
Listen to Travis' Podcast - travandlos.com
Get awesomeness emailed to you every thursday - travisneilson.com/notes
You should follow DevTips on Twitter - twitter.com/DevTipsShow
Let's finish this first section, like a boss!
- - -
This video was sponsored by the DevTips Patron Community - patreon.com/DevTips
Listen to Travis' Podcast - travandlos.com
Get awesomeness emailed to you every thursday - travisneilson.com/notes
You should follow DevTips on Twitter - twitter.com/DevTipsShow





![Behind the Scenes at Adobe [ DevTips Vlog 020 ]
I spent three days at Adobe, we made videos, toured the office, and went out all night. So much fun!
Watch the Videos we made at Adobe:
- Day 1, Design Thinking – https://youtu.be/tsePToj6nw4
- Day 2, Design Sketching – https://youtu.be/rMPXdGB-nk8
- Day 3, Design Prototyping – https://youtu.be/3B76B4wmFNs
Music by MrMrs - https://soundcloud.com/mr_mrs/riiide-out
- - -
This video was sponsored by the DevTips Patron Community - https://www.patreon.com/DevTips
Listen to Travis Podcast - http://www.travandlos.com/
Get awesomeness emailed to you every thursday - http://travisneilson.com/notes
You should follow DevTips on Twitter - https://twitter.com/DevTipsShow Behind the Scenes at Adobe [ DevTips Vlog 020 ]](https://i.ytimg.com/vi/UQsTfRcriwI/mqdefault.jpg)




![Regular Expressions in JavaScript - #1 REGEX ULTRA BASICS
A regular expression (or regex) is way to find strings within strings. Its small code that when applied to a string, will give other strings - either the whole string or parts of the string. This video gives you the ULTRA BASICS of REGEX.
Regexes most common use cases are:
What can we use them for?
1. Validation
If something is formatted correctly. Like verifying if someone has inputted the correct things in a form like an email address or a postal code
2.Extraction
Extract parts of a string that we would like to use. Say find how many times someone wrote david in a text.
Replacement
Find all parts of the string with david and replace them with something else like devtips.
You will learn:
- creating regex in two ways in JavaScript: slash notation or with the constructor new RegExp()
- escaping the special characters
- the special characters and how they work: ^, $, *, +, [a-z], [0-9], w, d for example
Companion code used in the episode
https://codepen.io/devtips/pen/gzqKKP
Or try one of these tools to experiment with regexes. They all do basically the same, its just a matter of taste:
https://www.regexpal.com/
https://www.regexpal.com/
https://regex101.com/
Read more on MDN, its the best resource:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions Regular Expressions in JavaScript - #1 REGEX ULTRA BASICS](https://i.ytimg.com/vi/VrT3TRDDE4M/mqdefault.jpg)