I have this code to find email addresses in given text:
preg_match_all("|[a-zA-Z0-9-_.]+@[a-zA-Z0-9-]+.[a-zA-Z]+|",
"</b>a@bexample </b> a@bexample.co ",$out, PREG_PATTERN_ORDER);
And the output is like this:
   Array
       (
       [0] => Array
           (
                [0] => a@bexample//error one
                [1] => a@bexample.co
           )
   )
the first answer isn't true. why?
 
    