Allora fai uno str_repalce( "<ahref" , "<a href" ) ; prima della re oppure modifica la re per identificare solo "<a" come inizio e non "<a href"