change to scala regex