I'm a little confused by something. I need to build a reg-ex to scrape for both plain integers and comma spaced integers in the same place in the same string at the same time. For example..
$string = "Mark's average score was 544."; preg_match("/average score was ([0-9]+)/", $string, $matches); $score = $matches(1); $string = "Julie's average score was 10,443."; preg_match("/average score was ([0-9]+,[0-9]+)/", $string, $matches); $score = $matches(1); How do I combine these two queries so that the reg-ex matches both the comma spaced integer and regular integer? Thanks! - Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php