in reply to Re: What are acceptable web user id & password?
in thread What are acceptable web user id & password?

I was told it has to be non-white space and non-XML
special characters along with being alphanumeric
How can achieve this pattern matching for 1 to many
occurences of such acceptable characters?

Thanks!

  • Comment on Re^2: What are acceptable web user id & password?

Replies are listed 'Best First'.
Re^3: What are acceptable web user id & password?
by dorward (Curate) on Jun 05, 2006 at 15:57 UTC

    No alphanumeric character is an XML special character or a whitespace character, so having those additional constraints makes no difference.

    Just test that it is alphanumeric; taking the hyphan and underscore out of my previous regex will give you that.