another try on scala regex