Hannuka, Chanukah, Hanukkah…Due to transliteration from another language and character set, there are many ways to spell the name of this holiday. How many legitimate spellings can you come up with?
Now, write a regular expression that will recognise all of them.
According to http://www.holidays.net/chanukah/spelling.htm, it can be spelled any of the following ways:
Here is my regex that matches all of them:
Edit: Or this, without branches: