I have this regular _expression_ for _javascript_
[^a-z\.,'{1}\-\s]
And it is supposed to replace/remove everything but the characters listed, ie. alpha characters, comma, dot, hyphen, spaces and only 1 single quote
it all works fine except for the single quote, what I want to achieve there is prevent users from entering more than one single quote.
So O'''Reilly becomes O'Reilly
I figured '{1} would do the trick, but not, anyone any idea?
Oooh, and I am not trying to prevent SQL injection or anything else, just trying to keep the data clean on the client side - server side checking will be done!!
Taco Fleur
07 3535 5072
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
