Antonio Scotti
2006-05-16 07:42:56 UTC
Hi,
I have a portability problem with regex (probably due to localization
issues).
I've found that, under Win32, the regular expression "\w" matches all the
alphanumeric chars, including non ascii ones (such as e grave or e acute).
This doesn't hold while under linux. In fact, \w only seems to match ascii
characters. I've tried chancing the locale, but nothing changed.
Is there a way to make \w have on linux the same behaviour it has on win32?
Thanks in advance.
I have a portability problem with regex (probably due to localization
issues).
I've found that, under Win32, the regular expression "\w" matches all the
alphanumeric chars, including non ascii ones (such as e grave or e acute).
This doesn't hold while under linux. In fact, \w only seems to match ascii
characters. I've tried chancing the locale, but nothing changed.
Is there a way to make \w have on linux the same behaviour it has on win32?
Thanks in advance.