I\'m using PHP, and am hoping to be able to create a regex that finds and returns the street number portion of an address.
Example:
1234- South Blvd. Washing
Try this:
$str = "1234- South Blvd. Washington D.C., APT #306, ZIP4523"; preg_match("~^(\d+)~", $str, $m); var_dump($m[1]);
string(4) "1234"