Oct-07-2016, 06:49 AM
i am looking for something that can split a string at a specific interval rather than by content
a = '0123456789abcdefghijklmnopqrstuvwxyz' b = skapsplit( a, 4 ) c = skapsplit( a, 6 ) d = skapsplit( a, 18 )would get:
b = [ '0123', '4567', '89ab', 'cdef', 'ghij', 'klmn', 'opqr', 'stuv', 'wxyz' ] c = [ '012345', '6789ab', 'cdefgh', 'ijklmn', 'opqrst', 'uvwxyz' ] d = [ '0123456789abcdefgh', 'ijklmnopqrstuvwxyz' ]should i continue looking or start coding?