I would like to check the user name like O'liver in the textfield, my regular expression in my JavaScript looks like this : check = /^[\w\s-\s.\s']+$/, however, it disables the html code or "" after the apostrophe, so my regular expression cannot contain "
' " ? i tried check = /^[\w\s-\s.]+$/, it works fine but not for the case like O'liver. So how can I do that? Thanks
leoshiu
Member
30 Points
6 Posts
JavaScript
Aug 30, 2003 05:36 AM|LINK