Test, validate and match regular expressions
This regex validates basic UNC (Universal Naming Convention) paths used for network resources. It matches paths with either backslashes or forward slashes (enforcing consistency using a backreference), with an optional http/https prefix. It's useful for validating network path inputs in Windows or cross-platform applications.