Test, validate and match regular expressions
This regex matches physical interface lines in network device configuration files (e.g., Cisco, Huawei). It identifies lines that begin with a lowercase interface name (case-insensitive due to flags) followed by interface numbers, slashes, parentheses, or 'G', then whitespace and any description or configuration. Useful for parsing network configs to extract interface names and their associated settings for inventory, monitoring, or automation tasks.