update number pattern attribute