Tuesday, 20 August 2013

regex to include line breaks

regex to include line breaks

I have this simple text to parse through Regex:
T. Condesa:
(52) (555) 1111 2222T. Polanco:
(52) (55) 1111-2222T. San Ángel:
(52) (55) 1111-3333T. Paseo Arcos Bosques:
(52) (55) 2222-3333T. Antara:
(52) (55) 1111-1111T. Interlomas:
(52) (55) 1111-1111T. Prado Norte:
(52) (55) 1111 1111T. Reforma:
Now here I only want the First phone number -
T. Condesa:(52) (555) 1111 2222
how can we parse using PHP to inlcude line breaks ?

No comments:

Post a Comment