See if this will get you there: /^([a-zA-Z-\']+,? ?)+$/
I did a quick test and it seems to do what you're asking. Or at least what I *think* you're asking. :-) I used this string for testing: The quick, brown fox jump'd over the lazy-ass dog On 4/12/07, contiw <[EMAIL PROTECTED]> wrote: > 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. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1036 Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
