RegEx-Girlfriend generates Regex from a description + an example of what you want to find. It was trained on every Regex pushed to Github.
Hi r/madeinpython!
How do I use RegEx-Girlfriend?
In the first box, enter a natural language description of what you want to find. For example, "the letter s when it's surrounded by the number 8".
In the "example input string" box, enter an input string you'd expect to see in the wild, that contains what you want to find. For example, "test te8s8t test".
In each "expected match" box, enter one expected match exactly as it appears in your example input string. For example, "8s8".
If you have multiple matches in your input string, use the "+" button to add more "expected match" boxes. Be sure to include every match you'd expect to find in your example string.
Tip: Sometimes whitespace can sneak in here and break things. Check for whitespace by highlighting your input!