Test, validate and match regular expressions
This JavaScript regex parses WikiRace application URLs to extract the base URL, an optional party ID, and a specific view (either 'game' or 'results'). Using named capture groups like `baseURL`, `partyId`, and `partyView`, it effectively handles various routing depths for multiplayer game lobbies. It is an excellent tool for client-side routing or state management in web applications.