Here's my current code:

/[\w\s]+/

I'm trying to make the following characters match:

Q W E R T Y U I O P A S D F G H J K L Z X C V B N M 
q w e r t y u i o p a s d f g h j k l z x c v b n m
_ (spaces)

Note - Sorry, I couldn't resist!

The character class you have will match all of the characters in the list of characters you posted. Is there a problem?

That's strange... well, thanks for verifying that it works.

Its not strange at all. What is strange is your post, it makes no sense.

In addition to the characters you posted the character class will also match 0-9 which is part of the \w character list:

a-zA-Z0-9_

If you don't want 0-9 you have to do this:

[a-zA-Z_\s]

Q W E R T Y U I O P A S D F G H J K L Z X C V B N M

mak a class or function and defin
a=A
A=a
b=B
B=b

and so on

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.