Hi every one I am trying to add an email validation Data Card in PowerApps and I am using almost the same code that is in this solution. But for some reason it shows an error,
"EmailCompro:text = There is an error in this formula. Please review it and run it again."

The code used is:
If(
IsMatch(
DataCardValue3.Text,
"^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$"
),
Check,
Icon.Warning
)
And the error stars at the , symbol with this message:
Unexpected characters. The formula contains "Error" where "ParenClose" was expected.
Unexpected characters. Characters are used in the formula unexpectedly.

Any help will be appreciated