묻고답하기

$imageBoxPattern = "/[img:(.+?).(jpg|gif),align=([a-z]){0,},width=([0-9]+),height=([0-9]+),vspace=([0-9]+),hspace=([0-9]+),border=([0-9]+)]/i";
$data[memo]=preg_replace($imageBoxPattern,"<img src='icon/member_image_box/$data[ismember]/\1.\2' align='\3' width='\4' height='\5' vspace='\6' hspace='\7' border='\8'>", stripslashes($data[memo]));

소스는 이렇구요. (제로보드입니다.)

[ img:11112.jpg,align=left,width=195,height=185,vspace=0,hspace=0,border=0]
원본 문자열은 이렇고


<img name=zb_target_resize style="cursor:hand" onclick=window.open(this.src)  src='icon/member_image_box/1/11112.jpg' align='t' width='195' height='185' vspace='0' hspace='0' border='0'>
변환된 문자열입니다.

align=left  이것이 align='t'  이렇게만 변환이 되서 이미지가 제대로 정렬이 안되는 현상을 보이는데
왜 그런지 아시는 분 좋은 답변 부탁드립니다. 좋은하루 되세요.