I'm using:
\b(?<=,)http.*?(?=,)\b
The issue come when I try to use it on:
Something,https://stackoverflow.com/questions/ask/,Anotherthing
While it works on:
Something,https://stackoverflow.com/questions/ask,Anotherthing
So if the / is places before the delimiter the expression seem to skip it. Please help me it's been an entire day that I'm stuck on this.
I tried to change it like:
\b(?<=,)http.*[\/],(?=,)\b
but it doesn't work nor it works
\b(?<=,)http.*\/,(?=,)\b
I want it to select any link until the , delimiter even if the comma is anticipated by /. Thanks for any help. I'm a noob sorry if it's easy.
Since a comma can not be in a url, you can narrow the characters in the url to not be a comma with
[^,]:Also you do not need the ? for optional character as * already means zero or more characters.