hi
i am totally stuck. i am looking for an regular expression for an url so that i can find it using php(eregi) in a text file.
<a href="httP://www.yahoo.com">yAHOO</A>
what's the expression for a link like that?
not sure if this is what you're looking for or not;
http://www.webreference.com/programming/php/regexps/5.html
use a preg, it's more efficient 🙂
preg_match("/<a .*href=[\"|']http:\\\\/\\\\/[a-z0-9_\\\\-\\\\.]+[\\"|'].*>.*<\\/a>/i", $string);