Added some curses to the regex pattern.