Thanks I understand better but i stumble a bit on preg_match command I read about it and I cant seem how people manage to get the right stuff out weird symbol that make no sense to me
PHP Code: 
 preg_match('#\[IMG\](.*)\[\/IMG\]#'$data$matches); 


This what I don't understand much #\[IMG\](.*)\[\/IMG\]# what is all the simple telling what to search can you break it down to me explain what those do? like # is and / is and other symbol I manage to learn ^ start line and $ endline ect