1
2
3
4
#!/bin/bash
echo -e "><.>\u200B<.><" | perl -pe "s,><,--,g" # --.><.><
echo -e "><.>\u200B<.><" | perl -pe "s,>\x{200B}<,--,g" # ><.><.><
1
2
3
#!/bin/bash
echo -e "><.>\u200B<.><" | perl -pe "s,>\N{ZERO WIDTH SPACE}<,--,g" # ><.><.><
1
2
perl -CS -E"print qq/123 asdf\N{ZERO WIDTH SPACE}123 jkl/" | perl -CS -pe"s/\N{ZERO WIDTH SPACE}/#/g"
123 asdf#123 jkl
1
2
# echo -e "Das ist ein ZWSP\u200BPunkt" | perl -CS -pe"s/\N{ZERO WIDTH SPACE}/#/g"
Das ist ein ZWSP#Punkt
1
2
3
echo -e "><.>\u200B<.><" | hd
00000000 3e 3c 2e 3e e2 80 8b 3c 2e 3e e2 80 8b 3c 0a |><.>...<.>...<.|
0000000f
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use strict; use warnings; use myLWP; my $r = myLWP->new( uri => 'http://rolfrost.de', ); my $zwsp = pack "CCC", 0xE2, 0x80, 0x8B; my $shy = pack("CC", 0xC2, 0xAD); my $body = $r->request->response_body; $body =~ s/$zwsp//g; # zero width space $body =~ s/$shy//g; # soft hyphen print $body;
echo -ne "\u200B" | perl -E "say length <>"
echo -ne "\u200B" | perl -CS -E "say length <>"