2
The Mask I need is this:
0000000-00.0000.0.00.0000
As I type in the input it is filled from right to left preserving the right zeros until it reaches the character limit of this string.
Examples:
0000000-00.0000.0.00.0000
0000000-00.0000.0.00.0001
0000000-00.0000.0.00.0012
0000000-00.0000.0.00.0123
0000000-00.0000.0.00.1234
0000000-00.0000.0.01.2345
0000000-00.0000.0.12.3456
0000000-00.0000.1.23.4567
0000000-00.0001.2.34.5678
0000000-00.0012.3.45.6789
0000000-00.0123.4.56.7891
0000000-00.1234.5.67.8912
0000000-01.2345.6.78.9123
0000000-12.3456.7.89.1234
0000001-23.4567.8.91.2345
....
In PHP you could use str_pad