Hi,
I would receive an email that should have a hyperlink with certain invoice no i am supposed to click.
To ignore other emails and only select that email- i used isMatch activity- regex101: build, test, and debug regex
Now from this email I want to filter out the href link for the text searched above
When i use- regex101: build, test, and debug regex it works fine
But i would like a way to grab the link just before the client word i have used in the ismatch activity above.
I would appreciate an easier way to do this.
Any help is appreciated!
Where the value is hardcoded that value you will be passing dynamically.by extracitng the invoice number first and passing to above regex.
Ismatch activity returns a boolean value, to get the value import system.text.regularexpressions and use Regex.match(Inputstring,βPatternβ).tostring
Thank you @anil5 for replying
I used the above expression- regex101: build, test, and debug regex
It is now exluding the first https that outlook appends.
Could you please take a look?
Use pattern as
(?<=href[=\β]+).*?(?=([β>\r\n]+Client_Invoice_))
This will match only the URL in the href and even works when client invoice number changes