Test, validate and match regular expressions
This regex matches Korean phone numbers with flexible digit groupings, where each segment contains 2 to 4 digits. It accommodates optional hyphens between the segments and can handle various Korean phone number formats, including landline numbers with area codes (like 02 for Seoul) and mobile numbers (like 010).