Build, test, and debug regular expressions
This regex matches URL paths that begin with a slash, optionally include a locale code (e.g., en-US, en-GB, fr-CA) or no locale, then contain the literal 'legal-platform' followed by one or more slashes. It handles paths like /legal-platform/, /en-US/legal-platform/, and variations with extra slashes. Use cases include routing, filtering, or extracting legal-platform URLs in web applications with locale-based content.