Forum Discussion
Hey @vaidyarm ,
You can use regex:
$email.match(/[1]+@([\w-]+.)+[\w-]{2,4}$/g)
Regards,
Bojan
-
\w-. ↩︎
This did not work, used it for the below invalid id’s but do not work
automatedclean@00d5g000005evyzea4
autoproc@00d5g000005evyzea4
noreply@00d5g000005evyzea4
-
\w-. ↩︎
- bojanvelevski5 years agoValued Contributor
Here is the input:
And the result:
So I gave you the logic for matching a correct format of an email. I you want to stop the pipeline, or throw an error, than you have to make some adjustments.
For example:
$email.match(/[1]+@([\w-]+.)+[\w-]{2,4}$/g) == null ? “fail” : “pass” if you want to use expressions. Other way I can think of is a Data Validator. Select Pattern as a Constraint and enter the regex into Constraint value.
-
\w-. ↩︎
I tried it via the below test pipeline but it does not work, not sure what I am doing wrong
Email Validator_2021_05_20.slp (6.5 KB)
-
\w-. ↩︎
-
-
Related Content
- 11 months ago