Hi Aaron
-
Does it really need to have the hyphen "-"?
Assuming it is necessary or not, you can use this expression: ^\d{2}-?\d{4,6}$..... This will accept both "12-3456" and "123456"...
in normalize use "$1-$2".
-
I believe this will solve it.
-
There's this website where you can test expressions for both Match and Substitution.
-
Expression ok:
-
-
-
expression NOK:
-
------------------------------
Kaio Oliveira
GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM
PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
------------------------------