Test, validate and match regular expressions
Validates mobile phone numbers that include a country code followed by a 10-digit number. It accepts two formats: an optional '(' and '+' with 1-2 digits before a required closing parenthesis and optional space, e.g. (+91)9876543210, or an optional '+' plus exactly two digits, optional whitespace, and ten digits, e.g. +91 9876543210. With the multiline and global flags, it matches each phone number on every line, making it useful for validating lists of phone numbers in forms, logs, or datasets.