in reply to regex help

Do it with hash table that is the best way