Question:
With single-byte chars optional matching works:/u
and 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!