Build, test, and debug regular expressions
This regex matches Indian phone numbers in three formats: international format with country code (+91 followed by 10 digits), local mobile numbers (10 digits not starting with 0), and landline numbers with STD code (0 followed by 10 digits). It includes optional separators like hyphens or spaces for international format. The conditional groups (?(1)) are used but have no additional pattern, essentially serving as placeholders.