XXXX redacted: Difference between revisions

Minor tweaks
m (more clarification)
(Minor tweaks)
Line 54:
Complex Unicode: Using the test string: [🧑 👨 🧔 👨‍👩‍👦] and the redaction strings: [👨] and [👨‍👩‍👦]
 
Show the redacted strings when using the optionsoption "Whole word, Overkill" (Case sensitivity shouldn't matter.) A single grapheme should be replaced by a single 'X'.
 
🧑 👨 🧔 👨‍👩‍👦
Redact '👨' [w|o] 🧑 X 🧔 👨‍👩‍👦
Redact '👨‍👩‍👦' [w|o] 🧑 👨 🧔 X
 
 
Line 100:
my $emoji = '🧑 👨 🧔 👨‍👩‍👦';
printf "\nStretch Unicode\n%20s %s\n", '', $emoji;
printf "%20s %s\n", "Redact '👨' [w|o]", $emoji.&redact('👨', :o);
printf "%20s %s\n", "Redact '👨‍👩‍👦' [w|o]", $emoji.&redact('👨‍👩‍👦', :o);</lang>
{{out}}
<pre>Redact 'Tom':
Line 121:
Stretch Unicode
🧑 👨 🧔 👨‍👩‍👦
Redact '👨' [w|o] 🧑 X 🧔 👨‍👩‍👦
Redact '👨‍👩‍👦' [w|o] 🧑 👨 🧔 X
</pre>
10,343

edits