Javascript regex for alphabetic characters and spaces? [closed]?

A-Za-z +$/ or /^A-Za-z\s+$/ More good stuff here: regular-expressions.info/javascript.html or just /\w+$/ if you also want 0-9 and underscores (\w stands for "word character", usually A-Za-z0-9_). But your recent edit indicates that you don't want 0-9, so use one of the first 2 above.

W doesn't match space, but matches 0-9 and underscore so your answer doesn't help. – some Nov 9 at 1:40 That wasn't there in your first post. ^A-Za-z +$ is what was asked for.In ^A-Za-z\s+$ the \s matches more than space (0x20).

And in your example \w+$ still doesn't match a space, but matches 0-9 and underscore. – some Nov 9 at 1:51.

You can use this to match a sequence of a-z, A-Z and spaces: /a-zA-Z +/ If you're trying to see if a string consists entirely of a-z, A-Z and spaces, then you can use this: /^a-zA-Z +$/ Demo and tester here: jsfiddle.net/jfriend00/mQhga/. For other regex symbols, there are tons of references on the internet. This is the one I have bookmarked and look at regularly: javascriptkit.com/javatutors/redev2.shtm..., you can practice in an online tool here: regular-expressions.info/javascriptexamp....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions