Test, validate and match regular expressions
This regex extracts app identifiers from Google Play Store and Apple App Store URLs. It handles both formats: numeric IDs in Apple's URL path (id123456789) and package names in Google Play's query string (?id=com.example.app). Useful for app analytics, deep linking, or cataloging mobile applications across platforms.