Let me make sure I understand your validation rules correctly... From what I've 
gathered, the string must:- Consist solely of upper and lowercase English 
letters from A-Z, commas, apostrophes, hyphens, and space characters.- Not 
contain more than one space character in a row (although multiple spaces can be 
separated by other characters).- Not contain more than one comma in the entire 
string.The following regex follows the above 
rules:^(?![^,]*,[^,]*,)\x20?(?:[a-zA-Z',-]+\x20?)*$Regards,--Stevehttp://badassery.blogspot.com/>
 Subject: Help with RegEx validation ...> From: [EMAIL PROTECTED]> To: [EMAIL 
PROTECTED]> Date: Wed, 11 Apr 2007 22:07:02 -0700> > So far I have this regex 
code> > /[^a-z\-\,\']|(\,.*\,)$/> > which should check if a string is:> 
contains just alpha nocase,> one or more single spaces allowed,> apostrophe and 
dash allowed,> just one comma allowed> > Unfortunately it doesn't work.> Any 
help cordially appreciated.> > contiW> -- > View this message in context: 
http://www.nabble.com/Help-with-RegEx-validation-...-tf3563487.html#a9953116> 
Sent from the Cold Fusion - RegEx mailing list archive at Nabble.com.> > > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1035
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to