Can you find the shortest regular expression to match all Star Wars titles without matching any Star Trek titles?
Star Wars | Star Trek |
---|---|
A New Hope | The Motion Picture |
The Empire Strikes Back | The Wrath of Khan |
Return of the Jedi | The Search for Spock |
The Phantom Menace | The Voyager Home |
Attack of the Clones | The Final Frontier |
Revenge of the Sith | The Undiscovered Country |
The Clone Wars | Generations |
First Contact | |
Insurrection | |
Nemesis | |
Star Trek | |
Into Darkness |
Inspired by xkcd #1313 and Regex Golf. All code MIT Licensed and available on GitHub.