<? $text = "pot post pat patent"; if ( preg_match( "/p.*?t/", $text, $array ) ) { print "<pre>\n"; print_r( $array ); print "</pre>\n"; } ?>