Hiya, I am having issues trying to get figure out a regular expression to grab the alt attribute of an img tag.. Here is what I have so far but cant seem to actually get it to work. $regexp = "/<img|<image*alt=(\"|'??)([^\"|' >]*?)*\/>|>/siU"; if (preg_match($regexp, $this->anchortext[$i], $matches)) { $this->anchortext[$i] = $matches[3]; } PHP: Any ideas? Thanks