Regex101 URLs With Pre-Filled Values
It’s possible to link to regex101 with pre-filled regular expression, flags, and test string, as well as pre-selected flavor/engine with these undocumented URL parameters:
code snippet start
https://regex101.com/?regex=...&testString=...&flags=...&flavor=...
code snippet end
The flavor value can be one of the following:
pcre2for PCRE2 (PHP >=7.3)pcrefor PCRE (PHP <7.3)javascriptfor ECMAScript (JavaScript)pythonfor Pythongolangfor Golangjavafor Java 8dotnetfor .NET 7.0 (C#)rustfor Rust
While regex101 has a nice feature for saving and sharing, these parameters are convenient for programmatically creating playground links.