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?
@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…
How do you find out if a user has entered a valid email address? Do you check for an at-sign, or is it more complicated? For many developers the answer is a regular expression, a little bit of code that can describe text patterns using wildcards and...
It is complex code since it is trying every type of email address which comes in different format
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?
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 …
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…
@joseantonio - Here you go…
835,80 - Link
21,00 - Link
0,00 - Link
0,00 - Link
1.011,32 - Link - (Assumtion on this pattern: there will be always a date before this field, if not it won’t work)
Hope this helps…Let me know, if it didn’t work any other texts(same pattern)…I will happy to assist…
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.
I use 2 regex patterns:
Complex (RFC 5322):
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.