<? $match = "/the (car|cat) sat on the (drive|mat)/"; $input = "the cat sat on the mat"; print preg_replace($match, "Matched $0, $1, and $2\n", $input); ?>
Copyright � 2010 Dotfluent Network. Use of this web site constitutes acceptance of the w3mentor Terms of Use and Privacy Policy.