use feature "unicode_strings" (>=v5.14) may help with that:
use feature "unicode_strings"; my $name = "foo\xa0x\xa03"; $name =~ s/\sx\s\d+//; say $name; # "foo"
In reply to Re: \s and non-breaking spaces
by Eliya
in thread \s and non-breaking spaces
by Ratazong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |