views:

974

answers:

5

I have the following regular expression : I figured out most of the part which is as follows :

ValidationExpression="^[\u0020\u0027\u002C\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00C0-\u00FF°./]{1,256}$"

u0020 : SPACE
u0027 : APOSTROPHE
u002C : COMMA
u002D : HYPHEN / MINUS
u0030-\u0039\ : 0-9
u0041-\u005A : A - Z
u005F : UNDERSCORE
u0061-\u007A\ : a - z

u00C0-\u00FF°./ : ??

Need help in understanding the final part of the validation expression :

u00C0-\u00FF°./

Anyone has any idea what does this mean?

+1  A: 

\u00C0 - \u00FF are letters with accents on them, though that isn't all of them. And "°" is just the degree character. However, "./" should probably be "\." to permit period characters.

The Wicked Flea
. inside [ ] does not need escaping. Only characters inside [ ] that need escaping is ] and \
MizardX
Oh, and the delimiter on those platforms that use them, such as perl and php.
MizardX
Ah, thanks. I'm not a regex expert so the small stuff like that does trip me up.
The Wicked Flea
+1  A: 

weird... according to the character map on Windows I'd say "À to ÿ"

Those are some variations (accents, cedillas) on A, C, E, I, D, N, O, U, Y, the german Sharp s, ...

Luk
A: 

Your question is mistitled, you want help with Unicode codepoints. You can check them, for instance, here.

They are the second half of Latin1 Supplement, including accentuated vocals and some other characters. See the above links.

Vinko Vrsalovic
The current title is my doing. Maybe you could tweak it to make it more clear.
Mark Biek
A: 

It looks to be the range of characters presented in the last 2 columns in TABLE ASCII-II at the following link to The Extended ASCII Chart

Brad Knowles
That chart is actually one of *many* extended ASCII's, known as codepage 437. But we're dealing with Unicode here, not ASCII. For the first 256 codepoints, Unicode happens to be identical to ISO-8859-1, another "extended ASCII" that's very different from cp437.
Alan Moore
A: 

Using http://rishida.net/scripts/uniview/conversion.php I got: ',-0-9A-Z_a-zÀ-ÿ

John Nilsson