I have a text box that requires an input of HH:MM:SS or even just MM:SS so if someone wants to set something for 13 seconds, it needs to be formatted as 00:13
Is there a regular expression that checks its formatting to make sure it ONLY contains the correct characters? so someone cant put "garbage" or too many numbers in there?
RegEx is definitely my weakest point in programming.
I ported a very nice component originally written for B4J by Erel: xRegexField
It checks the input from the user by a regex pattern and shows with a colored border invalid data; it should even "lock" the user to that specific field if invalid data is detected.
No, I didnt know it even existed. Or what it is. Also I noticed the keyboard is overlapping my floatingedittext but thats a whole different issue entirely that is separate from this.
I ported a very nice component originally written for B4J by Erel: xRegexField
It checks the input from the user by a regex pattern and shows with a colored border invalid data; it should even "lock" the user to that specific field if invalid data is detected.
To be honest I can't recall it, but I doubt it. It was just a porting and a way for me to practice with B4X/XUI techniques.
Try it and if it fits your needs (and you're not in a hurry) maybe I could add some features like the floating hint (where can I have a glimpse?).
I have a text box that requires an input of HH:MM:SS or even just MM:SS so if someone wants to set something for 13 seconds, it needs to be formatted as 00:13
Is there a regular expression that checks its formatting to make sure it ONLY contains the correct characters? so someone cant put "garbage" or too many numbers in there?
RegEx is definitely my weakest point in programming.