Tool for splitting a text (or set of characters) into a string of smaller size. Text Splitter depending on the size or the number of slices.
Text Splitter - dCode
Tag(s) : Data Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A text is a string of size N characters, so it is possible to divide N to get a set of sub-texts/blocks.
To separate a text every X characters, count each letter or symbol and split. Sometimes the last group is incomplete and can not have X characters.
Example: The text splitter cuts ABCDEFGHIJ (N=10 characters) into blocks of X=3 characters as ABC,DEF,GHI,J
To separate a text into K portions, first count the total number of characters N, and divide 'N / K = X' to get X the number of characters per group.
Example: To separate this text from N=10 characters in K=2, cut it out every N/K=5 characters: ABCDE,FGHIJ
An interesting option is not to split words, because when the text contains words and phrases (if it is not encrypted, for example), the division into the types of non-alphanumeric characters (spaces, punctuation , etc.) is preferable.