that is the email, I want to extract the name, email, phone and location from it.
I found 2 regex patterns so far for email and phone
email= ([a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+.[a-zA-Z0-9_-]+)
phone= (([+][(]?[0-9]{1,3}[)]?)|([(]?[0-9]{4}[)]?))\s*[)]?[-\s.]?[(]?[0-9]{1,3}[)]?([-\s.]?[0-9]{3})([-\s.]?[0-9]{3,4})
what regex pattern can I use to extract name and location, also is the one above right?
How do you want to extract these items from an email?
Do you already have mail body as string using GetOutlookMailMessage activity etc? if so, can you share the string?
Or
Do you want to extract these items from web browser directly?
The expressions in my previous post is for .net. As regex is slight difference b/w language, perhaps you need to use regex for your system.
And as we cannot know how table in mail body is handled, it’s necessary to clarify its specification.
So. it might be better to ask those in community of the system.
FYI, Pattern in the above image should be not System.Text.RegularExpressions.Regex.Match(yourString,"(?<=EMAIL:\s*)\S+").Value but just (?<=EMAIL:\s*)\S+
so I used a mail hook and that screenshot shows how the data is being received by the system, will the regex pattern you shared work here? or show I use a different regex pattern
Thanks, btw I tested them out in regex and all the patterns worked, but when I tested them in the tool (Integromat) it didn’t work, so I asked the community and they said something like this, do you know what they mean?
anyways as the regex changed, what should the ones for name, phone and location be?
I tried to figure it out based on the email one you gave but couldn’t create one.
There are some tutorials regarding regex for UiPath user as the following, for example. Probably it will help you.
Or as i mentioned in previous post, there are slight different syntax for regex among language, it might be better to learn regex for your focused language.