add const to NumberProperty::matchRegex()