I’m using a Dev Express RepositoryItemTextEdit, and I’m looking to set the Edit Mask to help ensure the users input is in the correct format.
The desired behavior is to get the user enter on or more 6-digit numbers either comma separated or using a hyphen to specify a range.
eg:
000002, 000005-000025, 000029-00200, 999999
I’m sure I should be able to do this using the MaskType of RegEx, I’m having difficulty coming up with the correct RegEx.
Do any RegEx Experts know how to put that one together?
Your goal is easy to achieve if you have access to a full POSIX regex engine (for instance if you’re using Perl or Python):
Accordingly to this Support Center thread end of string anchors are not supported by DevExpress editors but they are not required so you could try just:
and see if it works for you (I can’t test it myself as I don’t use DevExpress editors).