Note that such isn't really the problem. Putting nearly anything after or before the .*? in a regex can cause you problems. Even just
will match way too much by matching way too early against/<a href="(.*?)">/i
(: - tye'<a href="oops" lots of stuff <a href="ok">' '<a href="oops" > d'oh! whitespace! <a href="ok">' '<a href="oops, break a browser? <a href="ok">'
In reply to Re^5: Parsing out URLs with regex (diedotstar)
by tye
in thread Parsing out URLs with regex
by xtomservox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |