in reply to Re^9: Any good ways to handle NARROW NO-BREAK SPACE characters in regex in newer versions of Perl?
in thread Any good ways to handle NARROW NO-BREAK SPACE characters in regex in newer versions of Perl?
Why do you use literals in your source code?
You have the UTF-8 in your source code:
my $blah = "Screenshot-2024-02-23-at-1.05.14 AM.png";
... but you never tell Perl that your source code should be seen as utf8.
Don't use UTF-8 in your source code unless you also tell Perl about it.
Also, you will have noted already that your regular expression matches on the decoded filename.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^11: Any good ways to handle NARROW NO-BREAK SPACE characters in regex in newer versions of Perl?
by nysus (Parson) on Aug 13, 2024 at 17:49 UTC | |
by Corion (Patriarch) on Aug 13, 2024 at 17:52 UTC | |
by nysus (Parson) on Aug 13, 2024 at 18:21 UTC |