fixed regex when ? is in front