$pattern = "/<img(.*?)src=('|\")\.\.\/upload\/img\/_thumbs\/[a-zA-Z0-9\-_\.]*.(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i";

prova