Ciao,

con php potresti provare a combinare le due funzioni substr e strpos.

esempio:

codice:
$testo = "testo [img]img/test.png[/img] e testo";

$img_src = substr(strpos("<src='"),strpos("'"));
questo dovrebbe aiutarti...