I am looking for RegEx to extract links from a URL. The url will look like this:
/redirecturl?u=http://www.abc.com/&tkn=Ue4uhv&ui=fWrQfyg46CADA&scr=SSTYQFjAA&mk=4D6GHGLfbQwETR
I need to extract the link http://www.abc.comfrom the above URL.
I tried RegEx:
redirecturl\\?u=(?<link>[^\"]+)&
This works, but the problem is that it does not truncate all characters after the first occurrence of &.
It would be great if you could modify RegEx so that I just get the link.
Thanks in advance.
source
share