Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alert('99999999999'.match(/(.{3}|.{2}$)/g).join('.').replace(/\.(.{2})$/, '-$1'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement