So I have a field that I have set a constraint, my regular expression looks like this:
([BCDELMPX]{3})(-\d\d\d\d-\d\d\d\d\d)
I use the expression above, so it can accept a string like the ones below.
Examples: ELE-2013-22234, BLD-2001-23895, MEC-2003-10009, PLM-2009-00002
Everything works fine, the issue that I am having is that the regular expression is to complex to retain the '-' dashes in the field for faster user input. If I just use a basic expression like this:
-\d\d\d\d-\d\d\d\d\d
[ - - ] This is what the field would look like as default.
My question is if there is a way that the '-' dashes will remain in the field when using a more complex expression: ([BCDELMPX]{3})(-\d\d\d\d-\d\d\d\d\d)
That way the user can just enter the info and not the dashes every single time.
Note: I have also attached a doc with screenshots.