Anon 12/06/2023 (Wed) 08:39 No.8927 del
(1.31 MB 6251x2240 xr4t2u.png)
>>8925
>>8924
>but also got some posts with only ~7 consecutive lines instead of 10
Not sure why:
>cat $args | perl -pE "s/\n/\0/g"
in stdout, replace each newline byte with null byte
>grep -Poa
grep with perl regex, only matching, and also trying on files with binary data
>\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0\s*>\N*\0
it is "\0\s*>\N*" 10 times then "\0"
>\0\s*>\N*
>\0
Null byte (stand-in for a newline character)
>\s*>
zero or more whitespace characters then a ">"
>\N*
zero or more non-null-byte characters. So maybe to fix it, it should be "\N+" instead? Update: tried that, didn't work.

Message too long. Click here to view full text.