Forse che il tuo problema sia recuperare anche il testo dentro agli attributi?

Es: da [img]xyz.pgn[/img] dovrebbe estrarre "questo testo" ?

Sennò, perchè dici che strip_tags non ti basta?