Zlotzky
(Goran)
February 8, 2021, 11:39am
1
Hi. I have a txt file and want to save the different contact-data into variables. But cant get the pattern right to extract lets say “John Bill” as Firstname
(I´m a total beginner, I´m only getting “<![CDATA[John Bill]]”)
12173
I guess there´s a better way (some sort of array?) then doing it field for field but I´m trying to learn.
Srini84
(Srinivas Kadamati)
February 8, 2021, 12:17pm
2
@Zlotzky
To learn Regex, I suggest to visit below post
Hope this helps you
Thanks
3 Likes
Hi @Zlotzky
Can u share the text which nees to be extracted so.that we can help with regex pattern
Regards
Nived N
Happy Automation
Zlotzky
(Goran)
February 8, 2021, 12:34pm
4
Kontaktuppgifter.txt (583 Bytes)
Attached the txt file. I want to extract and store firstname = John Bill and lastname = Doe Hillside and so on.
U can try the regex pattern to get first name
(?<=<![CDATA[)[A-Z a-z \s]+
To get the last name u can use
(?<=<![CDATA[)[A-Z a-z \s]+
Hope it helps you
Regards
Nived N
Happy Automation
1 Like
Manish540
(Manish Shettigar)
February 8, 2021, 1:06pm
6
Check this below workflow, @Zlotzky
Uipath_ExtractionUsingRegex.xaml (4.5 KB)
Hope this may help you
1 Like
system
(system)
Closed
February 11, 2021, 3:23pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.