Answered
I have looked and googled but I'm not having any luck with this problem. I dont' think asking the right question.
How do I convert a number 12345678 into 123-45678?
I've seen something about using this:
var 3dash5 = /^([0-9\s]{0,3})\-?([0-9\s]{0,5})\s*$/;
but I'm not sure how to incorporate it.
Troy
You can do it with some simple String manipulation, like so...
var str = "12345678";
var result = str.substring(0,3)+"-"+str.substring(3)
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com