I have a file within it there are txt files . All the files name include “e Mail + Name Of The Person”
The thing I want to do is extract only eMails by using “Matches activity” and write them in the excel file .But only the e Mails.
This folder is on Desktop.
These are the files that I want to extract eMails from them.
I am able to extract the filename and write them by using write line acitivity when I don’t use the “Matches Activity”.
but when I include the “Matches” Activity it gives me this text lines in the output panel.
What you get out is a IEnumerable of matches, which you can see as a collection. So even though, you only have one item in your collection, you still need to specify that you want the first item.
You can just change your ‘Write Line’ to email(0).ToString in order to achive that.
Kind regards, Anders
Ps. I’ve made this UiPath and RegEx tutorial for further reference, but looks like you are at an advanced level yourself