I have this pattern:
/([^>'"])(http|ftp)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/
when using this as a subject:
http://www.google.com <a href="http://www.google.com">http://www.google.com</a> http://www.google.com
It matches the last http://www.google.com
but not the first one at the start of the line. How can I get it to match the first one at the start of the line too? (and continue to not match inside the anchor tag)