Regex Javascript | Regular Expressions in JavaScript

preview_player
Показать описание

Regex (aka Regular Expressions) in JavaScript are very useful. In this tutorial, we'll take user input for validation and provide hints for the user along the way. We'll also look at a common fix with regex that most user input will benefit from. Finally, we'll look at encoding text with encodeURI() and why we should use regex to clean the text first.

✅ Quick Concepts outline:
Regex in JavaScript:
• Testing for a regex pattern match
• Providing feedback for the user
• Cleaning the input text for storage with replaceAll
• A common problem with user text inputs
• Cleaning the text before encoding

📚 References:

📺 More Beginner JS Videos:

✅ Follow Me:

Was this tutorial about Regex (Regular Expressions) in JavaScript helpful? If so, please share. Let me know your thoughts in the comments.

#regex #javascript #js
Рекомендации по теме
Комментарии
Автор

Thank you Dave. After the HTML course, I've just finished the full javascript course for the first time. I spent a lot of time with you, now my plan is to repeat it all. You really doing a great job!

TheMrRengaru
Автор

In less than a month, you have taught me HTML, CSS and JavaScript from scratch! I really don't know how to thank you for keeping this wonderful content free for us!
I ditched two Udemy courses for the first time, which now feel like sub-par amateur courses when compared to your content!
Take a Bow, Dave!🙏

yatin
Автор

Dave, thanks for another awesome tutorial! Your examples are always top-notch!💛

kostiantynkarzhanov
Автор

Thank you Dave for lessons. I ended it. And now i am gonna start your react course. I hope it will be useful to me ). Thank you for this course again!

immortalaigs
Автор

I know you may did this in purpose to make the code the three examples look consistent, but,
In the first example you get the phoneNum element by its id whereas you can use the event.target property instead since the event listener is on the phoneNum element itself (maybe it saves a few cpu cycles)

Don't know why but with all the hard time I'm having the more I watch your videos the more I'm enjoyed them!

ahmad-murery
Автор

Great tutorial as always! Dave I’d like it if we could get a mini website project of some sort that combines the use of html, css and JavaScript for beginners. Just like you did at the end of your CSS and HTML Courses.

Really_riel
Автор

Great video and examples. A must see just after the 1st regex video.
I really enjoy the systematic and orderly way in which you teach.
I will definitely will be checking your other videos, even though I chose php for the backend.

CondeAlberto
Автор

Dave I brooked the like button from clicking too much on it !

mostafahusany
Автор

Thanks a ton again for your awesome efforts, it helped me a lot. God bless you.

Vikram
Автор

Hi Dave, could you also do a video on JS Date object, with timezone, UTC time, and how to properly use Date-time fields in JSONs (may be as part of this series). Thank you.

danushkap
Автор

Hi there, I like how you teach. Do you perhaps have a Webpack course?

adhdmed
Автор

I am finally done, quick question do I still need to know javascript if I know react

abdulrahmanagboolaosho
Автор

is this playlist enough to get started with react and node js ?

gunahawk
Автор

Dave, you look like Jesse McCree from Overwatch.

hassansyed