WDef
Group: Members
Posts: 798
Joined: Sep. 2005 |
|
Posted: Sep. 15 2006,19:20 |
|
Hope this helps Mik, might point in the right direction. Apparently, globbing of eg [A-Z] is a locale-dependent thing. Different locale setting, different interpretation of [A-Z].
Quote | When you set your locale to anything other than 'C', then both [A-Z] and [a-z] become whatever the locale wants it to mean. They do not necessarily mean the same thing as [A-Za-z]. It could be, for example, that [A-Z] is an invalid regular expression, because 'Z' comes before 'A' in this locale.
You are supposed to use [[:lower:]] if you want lower case letters in the current locale. |
Perhaps [[:upper:]] will do it.
From:http://mail.nl.linux.org/linux-utf8/2001-05/msg00033.html
Phil
|