add date format and regex user for java