Hi,
Thank your for your reply ( the only one so far 🙂 ). I tried your code, but PHP began complaining about unexpected ] and [ symbols, which most probably was caused by the quote characters. I tried to escape them, but after escaping I got an empty array with a warining message:
Warning: Unknown modifier 'a'
However I found a solution to this problem. The following regexp does the job:
preg_match_all("|<a( +[a-zA-Z]+=\"?([>\"]+)\"?)+>(.*)</a>|U",$Source,$Output)
It returns all links found in $Output. The only restriction is that tags must be in lower cases which could be easily achieved with str_replace before the regexp. I hope this would be useful to other members of this forum.
Cheers