- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
It is only a sample of matching text. You do need to update the regular expression to match your requirements. So if you wish to allow spaces in the input, you would add this to the regular expression as follows
var r = new RegExp("^[a-z' ']*$");
also wouldnt do uppercase for example, so you would ass A-Z to the regexp ( i.e. [a-zA-Z' ']) and so on