web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Enhancing email addres...
Power Apps
Unanswered

Enhancing email address validation

(0) ShareShare
ReportReport
Posted on by 31

Hi,

I'm using the built-in functionality with Power Apps, to validate if an email address is in the correct format:

IsMatch(dcvalEmailTMP.Text, Match.Email)

 

For the most part this does its job, however, it doesn't prevent users putting spaces or 2 x periods in an email address.

e.g. the following bad email addresses are still getting through:

joe.bloggs@outlook..com or joe.bloggs@ outlook. com

 

Could anyone suggest a way of enhancing the validation, to disallow these bad addresses?

 

Many thanks

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Please watch this video
    https://youtu.be/Er63W4_L9ks

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • Ric835 Profile Picture
    31 on at

    Almost. The video talks about pre-defined patterns which is what I was already using.

    However, he did have another video which mentioned using a regex. 

    I've now found a good regex to cover it from http://www.regexlib.com This seems to work:

     

    ^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2}|aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel)$

     

    Thanks for the hint.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard