I need a regex to extract a phone number from a string in the format (99) 9999-99999 or (99) 99999-9999, tested some more no work out, need it in Delphi using "System.RegularExpressions"
not work
(\(11\) [9][0-9]{4}-[0-9]{4})|(\(1[2-9]\) [5-9][0-9]{3}-[0-9]{4})|(\([2-9][1-9]\) [5-9][0-9]{3}-[0-9]{4})
not work
(?:(?([0-9]{2}))?[-. ]?)?([0-9]{4})[-. ]?([0-9]{4})
Ps: I not found in any search that works exactly.