Regex Phone Number - Step by Step
Vložit
- čas přidán 22. 07. 2011
- This is the basics of a phone number regex to just help you understand how to write regex in general
VIDEO CORRECTION!! The end of the regex needs to be a $ not a ?
^\+?\d.\s? // +1 or +44
\(?\d{3}\)? // first part
[-.\s]? // possible spacing / sep
\d{3} // 2nd part
[-.\s]? // possible spacing / sep
\d{4}? // 3rd part - Věda a technologie
Normally, technical "how-to" videos suck. They're convoluted and impossible to understand for the non-coder. In such cases, I normally feel compelled to throw out a nerd insult such as, "This guy is obviously sitting in a dark room somewhere, nude from the waist down, and binge-watching Star Trek." That said, your video is a refreshing difference to all those hard-to-understand videos. Excellent job, Bro.
Best regex seen till now. Thanks a lot!!
Great video man . Kudos. The best explanation that could exist for this .❤️
best, i learn regex in like a second with your explanation!
You are a rare breed who can explain regex. well done. d. should be d{0,3} I think?
i've spent literally two days trying to solve this isue. You had the exact solution for my problem.
Wow. You nailed the explanation !!
This is awesome. I've been searching all over the place to figure out what \ means ha. Not that complicated!
You are awesome, best explanation so far.
Thank you so much for sharing this information. It was easy to understand and very helpful.
Great tutorial, broke it down perfectly.
Thank you very much for the lesson.
If you want you can put a window into video which to say that the end of the regex should have "$" not "?".
GOD bless you.
This the best explanation! Thank you.
Thank you so much. So helpful.
nice tutorial, thank you!
Thanks for the video, it helped me a lot.
Really very nice tutorial.
Great video! Very helpful!
Thank u very much!! :D
nice thank you!
one word...clear
love u
Thanks!
Ver nice,, learned some more about it,
But didn't you forget the question mark after d(0,3) for optional?
well done
Cool!
helped me a lot😊 this is same in php as well?
Great tutorial. Wish you would have gone into the imbalanced parenthesis handling.
Thanks
@warlord90210 YES! damnit. Your right. This is what happens when you go from memory on things lol. Ill amend the description.
@RyanTheMc I'm sure he had good reason for saying it the way he did
how would you change this to match a specific number that might be written in various formats ei: match the numbers exactly 123 456 7890, even when written in the different formats? PLZ HELP I REALLY NEED THIS! :)
Nice
Very helpful 👍 but it is not printing first "(" ! what can be the solution?
does * modifier works? its zero or more
Upload video of email validation by regular expression?
How can I do if in the second part I need to evaluate the first number, I need to have 2 or 3 or 8 or 9 only in the first number of the second part the rest it's okay if it 0 to 9
[2|3|8|9]\d{2}
I think it would have had to be that.
How this is working in vue.js??
Nice tutorial, thanks
Why didn't you use question mark infront Of hipen
can you help me sir? how if condision in year 2018\2019 with regex
\d{4}
optikalefx i have tried but doesnt not work sir
See example. regexr.com/41ahv
Z bio bhb r