get regex working