fork(1) download
  1. <?php
  2. $str = 'T. Condesa:
  3. (52) (555) 1111 2222T. Polanco:
  4. (52) (55) 1111-2222T. San Ángel:
  5. (52) (55) 1111-3333T. Paseo Arcos Bosques:
  6. (52) (55) 2222-3333T. Antara:
  7. (52) (55) 1111-1111T. Interlomas:
  8. (52) (55) 1111-1111T. Prado Norte:
  9. (52) (55) 1111 1111T. Reforma:';
  10. preg_match("/^T[^T]+/", $str, $res);
  11. print_r($res[0]);
  12. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
T. Condesa:
            (52) (555) 1111 2222