I’m working on a project where I need to extract URLs and links from a Word document. The document contains a lot of text and other information, but I need to be able to extract just the URLs and links. Some links are embedded like “click here” if someone’s click on it then they will redirected to a website or on a mail address.
Does anyone have any suggestions on how to approach this? I’m using UiPath for the project, so any specific activities or methods within UiPath would be especially helpful.
Thanks in advance for your help!
One way to extract URLs and links from a Word document is to use regular expressions.
Use the “Read Text” activity to read the contents of the Word document into a string variable and then create a regular expression pattern that matches URLs and links.
For example, the following pattern matches HTTP(S) URLs and email addresses:
Use the “Matches” activity to apply the regular expression pattern to the string variable containing the Word document contents.
I will try and let you know, Thank you!