PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD22] Inputmask with regular expressions
[WD22] Inputmask with regular expressions
Débuté par Michael Drechsel, 17 avr. 2018 18:40 - 3 réponses
Posté le 17 avril 2018 - 18:40
Hi,

can anybody check this out ?

EDT_Text..InputMask="regexp:[0-9]{4,4}"

I need exact 4 digits from 0 to 9, it doesn´t work. Maybe a bug ?
Posté le 17 avril 2018 - 18:59
It works for me if I changed it to ..InputMask="regexp:[0-9]{1,4}"

HTH

King
Posté le 18 avril 2018 - 09:12
Hi King,

yes for me also, but I need "9999". It´s IMHO a bug.
Posté le 18 avril 2018 - 11:23
Hi,

Not tested, but would \d{4} do the trick?