Generating regex based only on examples of the desired behavior (2015)
github.com
github.com
sings | siren | song
Any other regex makes assumptions about what the example represents. Assumptions about semantics. The great thing about regular expressions is the absence of semantics. The great thing is that regular expressions are finite automata and not Turing machines.