Robert loves regular expressions and ever since his friend Jean introduced him to Regex Golf, he spends most of his time trying to find the shortest and most elegant solution possible. Robert is also very well-organized and likes to keep an archive containing all his regular expressions along with the test cases accompanying them.
[^ad]+ is his neuest regex. It matches the titles from every book in the Lord of the Rings trilogy:
- The Fellowship of the Ring
- The Two Towers
- The Return of the King
and none from the A Song of Ice and Fire series:
- A Game of Thrones
- A Clash of Kings
- A Storm of Swords
- A Feast for Crows
- A Dance with Dragons
- The Winds of Winter
- A Dream of Spring
However, he just noticed that he is missing the test case for his very first (and admittedly messy) regular expression:
Robert being the perfectionist he is desperately wants to remember what this monstrosity was even supposed to match, can you help him?