Can you please explain email regex in UiPath matches activity?

We can find the following email address regex in UiPath string matches activity.


This regex looks too complex for me. I’ve not seen this much complex regex for email extraction. Can someone please explain this regex in detail or do we have any website/documenation explaining this part by part?

1 Like

@Surya_Narayana_Korivipadu - Since this regex can cover all the variations it was complex…

Please check this page where you can get easy to very complex one…

1 Like

Hi @Surya_Narayana_Korivipadu

It is complex code since it is trying every type of email address which comes in different format


Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

1 Like


Pleas have a look

This is a rail road diagram for above regex.
This explain or & and cases and how they are formed.
Hope this will help you understand logic

Thank you for the comment. Now I’ve got a little bit understanding about the characters checked by this regex. But there are still many parts of the regex which I’m not able to understand. Where can I get part by part explanation which can help me understand and build this regex by myself?

Ok. I’ll check this

Use this website, It will give you brief explanation to each form used

@Surya_Narayana_Korivipadu …Yes …give me your sample email addresses …will share the some simple regex pattern …

1 Like

Thank you. This website is helping me. This is giving detailed explanation about every part of this regex.

No. I don’t have any use case. I’m just trying to understand how UiPath built this regex.

@Surya_Narayana_Korivipadu - UiPath doesn’t build regex…you have to code your pattern and use it on the UiPath…

Please take a look at the post where Regex pattern provided to fetch various amounts…

In the string matches activity “Configure Regular Expression” , this email regex was available by default. I’m referring to that one. Anyways, I’ve found a way to understand this from @Lakshay_Verma comments. Thank you.

1 Like

I use 2 regex patterns:

Very simple:


Complex (RFC 5322):


Interesting sources:


1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.