Email Validation

how to write Regular expression to validate email id?

Hi Jagruti (@Jagrutik),

Are you using T3 instance of AutomationEdge? If yes, please go to Resources tab and download the AutomationEdge Plugin Reference Guide from the Guides section. In this, refer to the section 13.10 Regex Evaluation. This step should be able to address your need. In addition to this guide, you can also visit this video to understand how the step works. This video does not have audio, only subtitles and instructions.

Let me know if you need any further clarifications

2 Likes

Ok
I recommend first refer this cheat sheet to understand REGX expression and look below regression to validate email


Email validation in data validator process studio

2 Likes

The fully RFC 822 compliant regex is inefficient and obscure for validate email address because of its length. Fortunately, RFC 822 was superseded twice and the current specification for email addresses is RFC 5322. RFC 5322 leads to a regex that can be understood if studied for a few minutes and is efficient enough for actual use.

If you use HTML5, use this code:

<input type="email" name="email" required placeholder="Enter a valid email address">