Make sure you’re using .net regex, the syntax is slightly different than others.
If your email will always contain 2+ URLs and you always want the second one, then I’d recommend grabbing all URLs with regex and then using the second match in your workflow.
However, if you always will want the first link that contains the word MODIFY, then something similar to your initial expression would be fine.
arivu96’s solution is grabbing everything starting with http and grabbing all non-whitespace characters in between.
The link you just said was extracted wasn’t even found above in the sample provided?
If your links don’t have spaces in them, a simpler solution to grab all URLs could just be (http)\S*
This is looking for the words http, then grabs all non-whitespace characters. However, if the URL shows spaces instead of %20, then it won’t work and you should use arivu96’s solution instead which seems to be doing some more fancy stuff I don’t feel like parsing right now haha
@Dave I decided to optimize my workflow to not find all links and open the 3rd one, as that’s not very reliable if number of links change.
I need to open a specific link containg the phrase ‘view_all’
I came up with this regex, which works in regexr.com:
^.\b(https|view_all)\b.$
Unfortunately, in UiPath, it opens a bunch of tabs with single words such as ‘want’ or ‘to’, and then it finally opens the link, but with extra characters:
%3Chttps//my.pitchbook.com/?asOfDate=2018-04-19&alert=true&searchId=16129717&showSearch=i&tag=MODIFY&tagPos=TOP
If anyone could help I would greatly appreciate it, I’ve been struggling with this for a good few days.