TelMatcher constructor
const
TelMatcher(
- [String pattern = r'(?<!\d)(?:' r'(?:\+?[1-9]\d{0,4}[- ])?\d{1,4}[- ]?\d{3,4}[- ]?\d{3,4}' r'|\d{2,5}' r')(?!\d)']
Creates a TelMatcher for parsing phone numbers.
The preset pattern is overwritten if a custom pattern is provided.
Implementation
const TelMatcher([
super.pattern = r'(?<!\d)(?:'
r'(?:\+?[1-9]\d{0,4}[- ])?\d{1,4}[- ]?\d{3,4}[- ]?\d{3,4}'
r'|\d{2,5}'
r')(?!\d)',
]);