Moved regex to init()