When I imbue a regex object with a particular locale, how does it affect the matching behavior? Does it affect collation, or anything else? I can’t seem to find an explanation anywhere.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It affects at least the following:
[a-f]imbued with a French locale should match the character é.\win a Finnish locale should match the character ä (but[a-z]should not, as å, ä and ö collate after z in Finnish. In German, however,[a-z]should match ä.)[=e=]should match é in a French locale but not in an English locale.