Problem of the Day
A new programming or logic puzzle every Mon-Fri

Regex Golf

Coding + Gold = Good Time. Today's problem is to create the smallest regex possible that will match the words in the Match column but not the words in the Unmatch column. In regex golf you only need to match a character (or a few sequential characters in some cases) in the word and not the entire word itself. For example if I wanted to match football but not banana then my regex could be the letter f.

Match Unmatch
football banana
soccer orange
tennis grapes
basketball pear
poker apricot

If you love regex golf definitely check out http://regex.alf.nu/.

Permalink: http://problemotd.com/problem/regex-golf/

Comments:

Content curated by @MaxBurstein