Hi ,
I've a column in my power app where the user enters email
the required filed is true
when the user enters the email is their any way that I could validate the email address
I don't need to validate on the basis of domain , I just need the mail should be in email format if not I need the datacard should display an error message and turn the datacard column color to red could any one help me on this
I tried to add an icon (warning ) inside the data card and set it icon function into following , but it is showing an error

If(
IsMatch(
DataCardValue2_6.Text,
"^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$"
),
Green,
Red
)

