I'm trying to develop a script that will autoformat alpha/numeric to place a "." every four characters. For this purpose, I would like to be able to input a set of numbers/letters into a field "0011e3125a31" and to autoformat to "0011.e312.5a31" .

I've tried to recode other snippets from the forms for auto formatting telephone numbers with no success.

Phone Formatting

Currency Formatting

If anyone could help create this or point me in the right direction would be helpful.