I want to fetch a certain html node in a large html text, but something in my regex is bad.
I want to fetch all urls that look like this:
<a href="ftp://mysite.com"> some stuff </a>
I am trying to do:
/<a href="ftp:(.+)">/
but sometimes it will work, but sometimes it will grab everything until the next close >
.
Is there a way to rewrite this regex so it will stop at the first >
?