News for hackers. Stuff that matters.
Re:ASCII Delimited Text – Not CSV or Tab Delimited Text by smarx007 on Sunday November 10, 2024 @12:31PM (#42101371)
The title says ASCII Delimited Text not ASCII Delimited Binary Data.

For the purposes of CSV, I consider text to be anything that satisfies the regex ^\P{Cc}+$ (https://www.compart.com/en/unicode/category/Cc) and I normally strip chars in that category before saving some text (for single-line text). ^[\p{Cc}&&[^\n]]+$ is a regex that can be used to strip all control chars except for the newline.

Re:ASCII Delimited Text – Not CSV or Tab Delimited Text by chrishill89 on Monday November 11, 2024 @11:15AM (#42108209)
Thanks for that. Handy. I think I’ll have use for that myself.