i have here my phone_number.txt that contains
CODE-111-1111
222-222-2222
333-3333[/CODE]
i'm using preg_match_all() for my script
preg_match_all('/([0-9]{3,})(-)[0-9]{4,}/',$mainHtml,$mainCode);
do not mind $mainHtml, $mainCode
my question is.... if i apply this kind of patter ( [FONT=Courier]'/([0-9]{3,})(-)[0-9]{4,}/' [/FONT] ) in my preg_match_all() my matches would be
111-1111
222-2222
333-3333
What is the correct pattern for my function to achive this kind of result only.
Thank you for any help...