From: Tim Bray Date: 2006-09-02T13:58:25+09:00 Subject: Re: RegExp issues.... On Sep 1, 2006, at 6:57 PM, Ben V. wrote: > I am trying to validate user input so it contains only letters, > numbers, > underscores and dashes. I am using this regexp:/[A-Z0-9_-]/ There are many more letters than [A-Za-z]. You should either be explicit that you're testing only the ASCII subset, or be prepared to fail the first time someone includes the word 'caf�'. And are you OK with '�' as well as '-'? -Tim