Тёмный

Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern 

Net Ninja
Подписаться 1,5 млн
Просмотров 80 тыс.
50% 1

Hey gang, in this RegEx tutorial we'll have a look at how to create an email regex pattern, to validate our user input in the email field.
DONATE :) - www.paypal.me/thenetninja
----- COURSE LINKS:
+ RegEx101 - regex101.com/
+ Course files - github.com/iamshaunjp/regex-p...
+ Atom editor - atom.io/a
+ CMDER - cmder.net/
======== Other Tutorials =========
----- NODE.JS TUTORIALS
• Node JS Tutorial for B...
----- MONGODB TUTORIALS
• MongoDB Tutorial for B...
----- SUBSCRIBE TO CHANNEL - / @netninja
======== Social Links ==========
Twitter - @TheNetNinja - / thenetninjauk
Patreon - / thenetninja

Опубликовано:

 

4 мар 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@ill-fatedstranger447
@ill-fatedstranger447 5 лет назад
You make complex things turn into easy
@lumagabriela9315
@lumagabriela9315 2 года назад
I'm so grateful for founding this amazing tutorial, the videos are short so it isn't overwhelming at the sime time it has lots of videos explaining each part. Finally learned regex
@mahmoodkamali7948
@mahmoodkamali7948 5 лет назад
Such a great and informative video which demystified what is regex and how to use it correctly and nicely. Bravo!
@Sam-cz7ck
@Sam-cz7ck 3 года назад
I'm loving everything about this series of tutorials :))))
@alend6826
@alend6826 5 лет назад
Thank you so much. I Got headache when I saw RegExp tokens at first time but these videos helped me to understand how these token works
@vadimbutenko8814
@vadimbutenko8814 4 года назад
Best explanation ever. You have a talent, keep going. Thank you.
@slapmyfunkybass
@slapmyfunkybass 6 лет назад
Very useful. Email addresses are very difficult to validate though, and the truth is it doesn’t matter how thorough you make it there’s no guarantee the user will type it in correctly anyway. Usually a confirm email box is added. I would let most characters through apart from those that have potential for malicious input and just check for an @ and dot character. But no way is the perfect way.
@AwadheshKumar-vb2us
@AwadheshKumar-vb2us 6 лет назад
For many days I was thinking to learning Regular expression, here I found best one
@yukcoding4155
@yukcoding4155 2 года назад
this like magic you are wizard…. Finally after months and months I wrote my own RegEx the first time and can stop copying it without any understanding
@stukey9751
@stukey9751 4 года назад
This was a HUGE help, thank you
@ruchk3872
@ruchk3872 4 года назад
Thank you! Explained it in a easy way...
@garrickhenry2592
@garrickhenry2592 5 лет назад
Great Tutorials🔥🔥 Keep up the good work 💯💯
@_rachid
@_rachid Год назад
Thank youuuuuuuuuuuuuuuuuu !!! This serie of videos was soooo helpful ! I'm grateful to you ❤
@wojciechm6349
@wojciechm6349 Год назад
What a great tutorial, thanks a lot. I have been learning web dev myself wanting to switch careers and videos like yours help a lot. Many thanks.
@NetNinja
@NetNinja Год назад
Great to hear! :) thanks for your support Wojciech
@shambhaviaggarwal9977
@shambhaviaggarwal9977 3 года назад
Thanks a ton! You are a savior
@noorullahkhan7482
@noorullahkhan7482 4 года назад
Thank you very much Bro! you made everything easy love it
@toprope98
@toprope98 2 месяца назад
This was very helpful. Thank you for making this video!
@NetNinja
@NetNinja 2 месяца назад
Glad it was helpful! :) thanks for watching
@pashabiceps95
@pashabiceps95 6 лет назад
I'm procrastinating to learn hard topics until you make the tuts
@stephenlawal4860
@stephenlawal4860 Год назад
Great stuff, just what I need. Thanks
@NetNinja
@NetNinja Год назад
Great to hear! thanks for watching Stephen
@dhrjarun
@dhrjarun 3 года назад
thankyou you are a great teacher
@Rolanditou
@Rolanditou 4 года назад
God bless all the Ninjas in the world ! specially The Net Ninja !!
@rananaeem4623
@rananaeem4623 3 года назад
no doubt, a great tutorial
@walterhuetwohl4598
@walterhuetwohl4598 4 года назад
Don't know if it is worth noting, but within a character set, the dot('.') doesn't need to be escaped
@alperkaya2540
@alperkaya2540 5 лет назад
Plus (+) is also valid character before the @ symbol. I frequently use plus symbol when I'm sharing my email with the websites. It helps me to track down the spammers. That feature is natively supported by Gmail and many of the email provider.
@chiragsingla.
@chiragsingla. 3 года назад
I dont get it can you explain how
@khankbar
@khankbar 11 месяцев назад
You can't make definitive conclusions from your personal anecdotal experiences, or rely on proprietary vendors. Anyway, the address specification is standardized in RFC 5322. It basically allows all printable ASCII characters except " (double quote) and \ (reverse solidus). The maximum length of the local part is 64 octets.
@saunaknandi1814
@saunaknandi1814 Год назад
Easy to understand
@resistance7326
@resistance7326 3 года назад
Best explanation!!
@felipemantovanelli8065
@felipemantovanelli8065 4 года назад
Thank you very much friend!!
@felipemantovanelli8065
@felipemantovanelli8065 4 года назад
I'm using this : ^([\w\.-]+)@([a-z\d-]+\.([a-z]{2,8})(\.[a-z]{2,8})?$
@ik-gd5yk
@ik-gd5yk Год назад
Thank a lot sir
@heyyy4987
@heyyy4987 6 лет назад
amazing..really necessary
@NetNinja
@NetNinja 6 лет назад
Thanks :)
@fangyuyang2857
@fangyuyang2857 3 года назад
awesome! thank you
@brentbrimacomb9725
@brentbrimacomb9725 4 года назад
This is great. How would you put it together, by not allowing the "submit" button not to work until all edits have been passed?
@techgalaxy100
@techgalaxy100 3 года назад
Dot does not to be escaped if inside the character class, I believe. Please correct me if I am wrong. Awesome tutorial by the way...
@sohulanjum9494
@sohulanjum9494 2 года назад
Tqs a lot.. May Allah bless u
@ViniciusSilva-zg7lz
@ViniciusSilva-zg7lz 3 года назад
Very good!
@sagshah10
@sagshah10 6 лет назад
Hello, Thank you once again for the awesome tutorials, just want to point out, emails can also have underscores ( _ ) similar to dashes ( - ), I guess all one needs to do to add it is to add an '_' symbol within the group, right. Thanks.
@NetNinja
@NetNinja 6 лет назад
Hey, yeah, that's right :)
@iamusmanshykh
@iamusmanshykh 4 года назад
jani pyara hya tu ... love you jani g
@pururajsinghrajawat5348
@pururajsinghrajawat5348 3 года назад
Before first lecture : WTF! is this - /^([a-z\d\.-]+)@([a-z\d-]+)\.([a-z]{2,8})(\.[a-z]{2,8})?$/ After last lecture : Oh! this is so easy to understand. Thanks Net Ninja for this wonderful playlist on Regular Expressions .
@KenHehehe
@KenHehehe 4 года назад
How can i fix this error? "Uncaught TypeError: Cannot read property 'test' of undefined"
@haliszekeriyaozkok4851
@haliszekeriyaozkok4851 Год назад
As being your appreciative, i think you're forgot the "_" symbol for the left of the "@" symbol. I think there is no more lack about email expression.
@AJAYKUMAR-gf8jc
@AJAYKUMAR-gf8jc 2 года назад
Hey I was just checking the codes in github and the js file is there but not the code.
@AkhilAravind
@AkhilAravind 4 года назад
what about confirm password ? How to validate that ?
@harshpalsingh1145
@harshpalsingh1145 5 лет назад
what is the use of ^ (this symbol) ? why every pattern starts with ^ ?
@munemprionto4476
@munemprionto4476 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RD3tMcFDjyo.html
@bee_irl
@bee_irl 3 года назад
You forgot to make it case insensitive. Even though emails are already case insensitite (meaning any email in all caps goes to the same address as its lowercase counterpart), capital letters shouldn't make the email address invalid.
@leosmithune1117
@leosmithune1117 3 года назад
When you search for this on c# and this shows up, cmon youtube -__-
@TheAJKahn
@TheAJKahn 3 года назад
5 dislikes from users who are debating the best RegEx for emails.
@RandalLSchwartz
@RandalLSchwartz 3 года назад
Not that this is a Dart/Flutter course, but there's a package in the pub called email_validator which precisely follows the specifications. There's a similar package for Perl called Mail::RFC822::Address that does the right thing again according to the standards. That module creates a regex up from smaller pieces, and for grins got expanded as www.ex-parrot.com/pdw/Mail-RFC822-Address.html . Yes, that page of text is the SMALLEST VALID REGEX for a legal email. If your handmade regex is any shorter than that, you will get false negatives. Specifically, the regex here fails on one of my addresses: fred&barney@stonehenge.com, and on one of my friend's addresses: *@qz.to. Yes, a solitary asterisk is a valid email localpart.
@mohitbhagat5354
@mohitbhagat5354 4 года назад
update@update this comes as valid email using above expression :(
@rajanmaheshwari
@rajanmaheshwari 3 года назад
I think it won't. I tried.
@theSUBVERSIVE
@theSUBVERSIVE 3 года назад
validator.isEmail()
@stephanhartl2531
@stephanhartl2531 3 года назад
Thanks, for your playlist. But this RegEx wouldn't recognise my student e-mail: firstname.lastname@st.uni-domain.com . But this seams to be a speziell think because by some websites this e-mail causes problems.
@MuhammadSaaddev
@MuhammadSaaddev 6 месяцев назад
The best Regex tutorials on RU-vid, thanks Master Ninja !! Thought underscore should be added as well /^([a-z\d\.-_]+)@([a-z\d-_]+)\.([a-z]{2,8})([\.a-z]{2,8})?$/
@ik-gd5yk
@ik-gd5yk Год назад
Thanks a lot sir
@NetNinja
@NetNinja Год назад
You're welcome! :)
Далее
Downloading Teardown Evaporate Tool..
8:47
Просмотров 30 тыс.
The AI art situation
21:00
Просмотров 10 тыс.
JavaScript Async Await
7:31
Просмотров 802 тыс.