orthogon wrote:Flumble wrote:MichaelKarnerfors wrote:For those that want to play some Regex Golf...
Wow, it's actually a thing?
I was surprised too; I assumed that Randall had invented it as part of the joke.
I've got as far as "5. Abba", but my current regex is 100% wrong: it matches everything in the right list and nothing in the left, which sounds like it should be easy to fix, but... It does however contain a nice pair of ASCII breasts.
lol, it's basically half the solution. Inverting a regex is not immediately obvious but it's possible and not very hard. Search for "negative lookaheads". A similar solution is used for 7.Prime. BTW 7 is now my favourite regex problem, it has a general solution solution that is pretty short.