I have a regex expression that is matching URLs in a string which are not between quotes. This is working great but I have a minor issue with it.
The part that is dealing with the quotes is capturing the first character (can also be a white space) before the URL (usually https).
Here is the regex expression:
/(?:^|[^"'])(ftp|http|https|file):\/\/[\S]+(\b|$)/gim
You can test it out and you will see this unwanted match happening in front of the URL (if you type anything in front of the URL of course).
How do I get the proper Full match?