Hi Vaughan,
 
I might be a bit daft here, but I don't see what your regEx will do?
 
Can you elaborate?
 
Thanks
-----Original Message-----
From: Vaughan Allan [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 November 2003 1:48 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: [OT] JS RegEx


do it as a seperate _expression_ perhaps:

i.e. s/'+/'/g   (assuming you don't need to backslash-escape the quote)


Vaughan.





"Taco Fleur" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

28/11/2003 01:41 PM

Please respond to
"CFAussie Mailing List" <[EMAIL PROTECTED]>

To
"CFAussie Mailing List" <[EMAIL PROTECTED]>
cc
Subject
[cfaussie] [OT] JS RegEx





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



If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact ABN AMRO Morgans Limited immediately by returning the email to [EMAIL PROTECTED] and destroy the original. We will refund any reasonable costs associated with notifying ABN AMRO Morgans. This email is confidential and may contain privileged client information. ABN AMRO Morgans has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Materials may also be transmitted without the knowledge of ABN AMRO Morgans. ABN AMRO Morgans Limited its directors and employees do not accept liability for the results of any actions taken or not on the basis of the information in this report. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any recommendation is made on the basis of our research of the investment and may not suit the specific requirements of clients. Assessments of suitability to an individual?s portfolio can only be made after an examination of the particular client?s investments, financial circumstances and requirements.
--- 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

---
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

Reply via email to