Test, validate and match regular expressions
Validates Spanish mobile phone numbers with an optional country code (+34 or 34). The 9-digit local number must start with 6 followed by any two digits, or with 7 followed by a non-zero digit and one more digit, reflecting Spain's mobile number allocation. Commonly used for form validation, user registration, and data cleansing of Spanish contact numbers.