Extract text from URL ?
trying this preg_match
/\<a href=([^"]*) .?\>([^\<\/a]*)\<\/a\>+/
Not working on
<a href="_first.asp?FileName=37479676820111216064143">
<font size="2" face="Tahoma">
TEXT I WANT TO EXTRACT
</font>
</a>
am sure there’s something wrong with ([^\<\/a]*) am just too bad in regex and can’t find a good tutorial even !
In the very start, you have
href=, then any number of non-quotes (which is zero in your example, since the next character is a quote), and then a space (which fails your expression, since the next character is not a quote, but a space).In any case, while this is doable with regexps as long as the structure doesn’t change, it’s not really the way to do it.