Sorry, my bad. I was too quick off with the answer. It's ? to match zero or one.
Adrian -----Original Message----- From: Ian Skinner Sent: 23 January 2008 16:31 To: RegEx Subject: Re: Sort cut for 0 or 1. Adrian Lynch wrote: > Yup, + > > Adrian > http://www.adrianlynch.co.uk/ It is my understanding that + is 'one *or more* times.' I don't want the 'or more' part. In this particular case it needs to be zero times or one time, nothing more (or less if that is possible). {0,1} works well. But I thought that this is such a common thing, at least I have been writing it a lot, that there could be a short cut for it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1116 Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
