in reply to Re: UTF8 versus \w in pattern matching
in thread UTF8 versus \w in pattern matching
Thanks. That part about the U+7F..U+FF range explains things. I see that m/^([\/\-\_\.\p{Word}\x7f-\xff]+)$/ matches, and m/^([\/\-\_\.\p{Word}]+)$/ does not. I presume that is because the data upstream might really be ISO-8859-15 and not UTF-8? Should I try to convert the U+7F..U+FF range into UTF-8 before further processing? If so, how?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: UTF8 versus \w in pattern matching
by ikegami (Patriarch) on Jul 11, 2021 at 05:12 UTC |