Regular Expressions (RegEx) Tutorial #14 - Matching a Username

preview_player
Показать описание
Hey ninjas, in this RegEx tutorial I'll explain how we can create RegEx patterns to match a potential username field, a password field and a profile slug field. Huzzah.

----- COURSE LINKS:

======== Other Tutorials =========

----- NODE.JS TUTORIALS

----- MONGODB TUTORIALS

======== Social Links ==========

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

These tutorials are amazing! I went from being scared of RegEx to actually started to use them and understand how they work, big thanks!

PelFox
Автор

I would like to say thanks for explaining things so clearly. I am learning so much because of your approach.

johnborron
Автор

Big fan of your teaching style and material...…….. u are really help full...…….looking forward to complete most of your tutorials...…… God bless you

kartp
Автор

Shaun, thank you for teaching my Regex. It was a wonderful experience.

RaajKanchan
Автор

thank you! I feel confident in regex now.

mashak
Автор

Nah theres plenty of stuff on svg and machine learning.. what we really need is a series on the orm sequelize for express 😁 please 🙏 your mongoose and mongo series was a absolutely perfect! Many people have a hard time with their documentation and there's not much on YouTube..

kodieivie
Автор

What if in password, someone types _(8-12)times or @(8-12) times. How to restrict such behaviour?

hackzyoboy
Автор

You did [a-z\d]{5, 12}, wouldn't that mean one can also input 12345 and the valid class would be added???

laridot
Автор

awesome tutorial net ninja! i hope you can make you mouse pointer visible in dark background, when you pointing through the code, cant almost see which ilne your pointing because mouse pointer is black like the background

thank you!

donow
Автор

Great.
But key-up does problem which is when enter value, happening true or false is changed,
How Solve ?

aeeweb
Автор

Hello Ninja, Thank you a lot for your marvelous videos and tutorials, I wonder if i want the field name to take more than one name (i.e. john Smith), what RegEx it would be ?
And thank you again.

alalyrealestate
Автор

i get an error which said regex.test is not a function when i switched the order of parameter in function validate to (regex, field) why is it? an answer would made my day🙏

oneforallchannel
Автор

thank you very much for your very helpful videos. could you do a serie on svg?

raffaelenicolapiazzolla
Автор

How to limit the field so that we cannot type more than 10 numbers. Like when we type phone or credit card numbers in online forms

PrudhviRajRaavi
Автор

Hi Shaun, would the validation also need to be done on the backend as well? I'm wondering what happens if the user inspected the html and changed the class= to 'valid' on each field and pressed submit, would that be submitted also? Great videos, thank you

MrRossss
Автор

Good playlist really appreciate your work.. One doubt according to prev videos in password either @, _, - shoud be allowed not all together can be allowed help me

mukeshphulwani
Автор

what if you add blank spaces to the slug or the username will it accept with this regex?

rod
Автор

2:24 i had the same issue when i was 15)

pashabiceps
Автор

hey what if i dont want to start user name with numbers???

charan
Автор

Am I the only one struggling to understand how this all works? Where does field come from? What is field.value? So many questions.
P.S. I am a beginner.

Pavel-wjgy