[^\a-zA-Z]+ 是一種在任意非字母字符序列上進行分割的方法。即使單詞中包含混合標點符號,它也會進行分割。\n) 將每個段落放在自己的行上。一個管道 (|) 或逗號會形成一個有分隔符號的一行列表。Let’s say you have some survey data or a basic CSV file that is not properly formatted. You want to put the individual things into a nice vertical list for study, or to import into another application.
apple, banana, cherry, date, elderberry, fig
配置: Choose 依符號分割 and type a comma (,) into the symbol box. Set the 輸出分隔符 to newline (\n). Get clean results by selecting 修剪空格 and 跳過空白部分.
This method is great for data cleansing, building lists for databases or preparing tags for a website CMS from one string of text.
輸出: All stray spaces removed, and every fruit is on its own line. The output is an organized list, ready to be used further.
apple banana cherry date elderberry fig
If you’re using a platform like Twitter (X) or SMS, there are quite severe character constraints. If you have a long message, you need to break it up into compliant portions and keep it readable.
Thank you for being part of the yearly tech conference. The talk on AI ethics was especially informative, stressing the importance of transparent algorithms. We are looking forward to seeing you at the workshop tomorrow.
配置: Select 按長度分割 and set 160 (a common SMS limit). The program will break the text into parts of exactly 160 characters. You may also add things like "(1/3)" to each bit with the "Char Before/After Chunk".
輸出: The text is now split into chunks within the character limit. This ensures that your complete message is sent and not cut off by the platform.
Thank you for being part of the yearly tech conference. The talk on AI ethics was especially informative, stressing the importance of transparent algorithms. We are looking forward to seeing you at the workshop tomorrow.