I would like to be able to extract a number from within a string formatted as follows:
\"<[1085674730]> hello foo1, how are you doing?\"
I\'m a novice wit
$subject = "<[1085674730]> hello foo1, how are you doing?"; preg_match('/<\[(\d+)\]>/', $subject, $matches);
$matches[1] will contain the number you are looking for.
$matches[1]