Build, test, and debug regular expressions
This regular expression matches international phone numbers that may include an optional country code, area codes enclosed in parentheses, and various separators like hyphens, dots, or spaces. It captures sequences of digits grouped into varying lengths followed by a longer trailing sequence of digits. It is useful for extracting or validating loosely formatted phone numbers from text, though its high leniency means it might occasionally match non-phone number digit sequences.