SlideShare a Scribd company logo
Using to

validatetheemail
Regex
Regexhasalwaysbeenapainfor
developers.Butit’soneofthe
in
programming.


Let’sseehowyoucanvalidatean
emailusingRegex:

mostcriticalconcepts
If the above condition is true,
it means that the input is valid.


So based on the result, you
can show the error!

RegExp(r’[a-z]*@somniosoftware.com’).hasMatch(input)
hello@somniosoftware.com
Leave a comment


Save for later

More Related Content

More from EugeniaGallo1

What is the use of BuildContext?
What is the use of BuildContext?What is the use of BuildContext?
What is the use of BuildContext?
EugeniaGallo1
 
TextField vs TextFormField
TextField vs TextFormFieldTextField vs TextFormField
TextField vs TextFormField
EugeniaGallo1
 
GestureDetector vs InkWell
GestureDetector vs InkWellGestureDetector vs InkWell
GestureDetector vs InkWell
EugeniaGallo1
 
Difference between Container and SizedBox
Difference between Container and SizedBoxDifference between Container and SizedBox
Difference between Container and SizedBox
EugeniaGallo1
 
Difference between Container and SizedBox
Difference between Container and SizedBoxDifference between Container and SizedBox
Difference between Container and SizedBox
EugeniaGallo1
 
Flutter Sessions #4
Flutter Sessions #4Flutter Sessions #4
Flutter Sessions #4
EugeniaGallo1
 
Dash: Our loyal office companion.pdf
Dash: Our loyal office companion.pdfDash: Our loyal office companion.pdf
Dash: Our loyal office companion.pdf
EugeniaGallo1
 
6 App Marketing Strategies you should include
6 App Marketing Strategies you should include6 App Marketing Strategies you should include
6 App Marketing Strategies you should include
EugeniaGallo1
 
6 App Marketing Strategies you should include.pdf
6 App Marketing Strategies you should include.pdf6 App Marketing Strategies you should include.pdf
6 App Marketing Strategies you should include.pdf
EugeniaGallo1
 
Trip to Oslo and London
Trip to Oslo and LondonTrip to Oslo and London
Trip to Oslo and London
EugeniaGallo1
 

More from EugeniaGallo1 (10)

What is the use of BuildContext?
What is the use of BuildContext?What is the use of BuildContext?
What is the use of BuildContext?
 
TextField vs TextFormField
TextField vs TextFormFieldTextField vs TextFormField
TextField vs TextFormField
 
GestureDetector vs InkWell
GestureDetector vs InkWellGestureDetector vs InkWell
GestureDetector vs InkWell
 
Difference between Container and SizedBox
Difference between Container and SizedBoxDifference between Container and SizedBox
Difference between Container and SizedBox
 
Difference between Container and SizedBox
Difference between Container and SizedBoxDifference between Container and SizedBox
Difference between Container and SizedBox
 
Flutter Sessions #4
Flutter Sessions #4Flutter Sessions #4
Flutter Sessions #4
 
Dash: Our loyal office companion.pdf
Dash: Our loyal office companion.pdfDash: Our loyal office companion.pdf
Dash: Our loyal office companion.pdf
 
6 App Marketing Strategies you should include
6 App Marketing Strategies you should include6 App Marketing Strategies you should include
6 App Marketing Strategies you should include
 
6 App Marketing Strategies you should include.pdf
6 App Marketing Strategies you should include.pdf6 App Marketing Strategies you should include.pdf
6 App Marketing Strategies you should include.pdf
 
Trip to Oslo and London
Trip to Oslo and LondonTrip to Oslo and London
Trip to Oslo and London
 

Using Regex to validate the email