Regex Cheat Sheet by Language (JS, Python, PHP, Java, Go)
Most regex syntax is universal but each language has its quirks. Python supports named groups as (?P<name>); JavaScript uses (?<name>). Go's RE2 doesn't support lookbehinds. PHP's PCRE has its own flag set. This cheat sheet lists every common regex feature with its syntax in JavaScript, Python, PHP, Java, Go, and .NET side-by-side.
How to use the Regex Cheat Sheet by Language (JS, Python, PHP, Java, Go)
Browse the full reference or filter by keyword. Each row shows the feature's syntax in each language; columns highlight where they differ.