Question:With single-byte chars optional matching works:
/uand I’ve tried
use feature 'unicode_strings'to no avail. I assume perl sees
дas multiple bytes and only applies
?to the last one.
Answer:You have to tell Perl that the source is in UTF-8:
If you have better answer, please add a comment about this, thank you!