Monday, 5 January 2015

Javascript Application to Split Text Every Few Characters

This is a simple JavaScript application that can split text every "n" characters, and add a separator of your choice in between. (E.g. separated by comma, space, semicolon, etc.)
For instance, given the input:"abcde12345", separating using the default settings will output:"ab,cd,e1,23,45".
Hope it helps!

Input:


Output:


Split every characters
Separator:

References:

JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides)

No comments:

Post a Comment