How Can I Split a Character String by a Given Number of Characters?

Hello,
Here a string of characters, I want to split it with a defined number of spaces.
tgaatacattgaagcttcatgaatacattgaagcttgcatgaatacattgtgaatacattgaagcttaagctttgaccacagaggatttct
Like this:
tgaatacatt gaagcttcat gaatacatt....

Thanks!

Assuming you meant "number of ==characters==", you can use the KM Search and Replace action for "Regular expressions".

Search for:
(.{10})
where "10" is the number of characters you want to use

Replace with:
\1𝍖
where "𝍖" is the SPACE character.

Example

image

Please let us know if this works for you.

1 Like

Thanks for you help, this boost the efficiency of my daily work. :heart:

1 Like