XXXX redacted: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m more clarification
Thundergnat (talk | contribs)
Minor tweaks
Line 54: Line 54:
Complex Unicode: Using the test string: [🧑 👨 🧔 👨‍👩‍👦] and the redaction strings: [👨] and [👨‍👩‍👦]
Complex Unicode: Using the test string: [🧑 👨 🧔 👨‍👩‍👦] and the redaction strings: [👨] and [👨‍👩‍👦]


Show the redacted strings when using the options "Whole word, Overkill" (Case sensitivity shouldn't matter.) A single grapheme should be replaced by a single 'X'.
Show the redacted strings when using the option "Whole word" (Case sensitivity shouldn't matter.) A single grapheme should be replaced by a single 'X'.


🧑 👨 🧔 👨‍👩‍👦
🧑 👨 🧔 👨‍👩‍👦
Redact '👨' [w|o] 🧑 X 🧔 👨‍👩‍👦
Redact '👨' [w] 🧑 X 🧔 👨‍👩‍👦
Redact '👨‍👩‍👦' [w|o] 🧑 👨 🧔 X
Redact '👨‍👩‍👦' [w] 🧑 👨 🧔 X




Line 100: Line 100:
my $emoji = '🧑 👨 🧔 👨‍👩‍👦';
my $emoji = '🧑 👨 🧔 👨‍👩‍👦';
printf "\nStretch Unicode\n%20s %s\n", '', $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]", $emoji.&redact('👨');
printf "%20s %s\n", "Redact '👨‍👩‍👦' [w|o]", $emoji.&redact('👨‍👩‍👦', :o);</lang>
printf "%20s %s\n", "Redact '👨‍👩‍👦' [w]", $emoji.&redact('👨‍👩‍👦');</lang>
{{out}}
{{out}}
<pre>Redact 'Tom':
<pre>Redact 'Tom':
Line 121: Line 121:
Stretch Unicode
Stretch Unicode
🧑 👨 🧔 👨‍👩‍👦
🧑 👨 🧔 👨‍👩‍👦
Redact '👨' [w|o] 🧑 X 🧔 👨‍👩‍👦
Redact '👨' [w] 🧑 X 🧔 👨‍👩‍👦
Redact '👨‍👩‍👦' [w|o] 🧑 👨 🧔 X
Redact '👨‍👩‍👦' [w] 🧑 👨 🧔 X
</pre>
</pre>