This will let both sides be optional. You may want to try: ^(\d+\.\d*|\.\d+)$
This will allow "3.", which may or may not be what you wanted. --Ben Doom Ian Skinner wrote: > Ben Doom wrote: >> ^\d+\.\d+$ >> >> I'm assuming you want digits before and after the decimal. >> >> --Ben Doom > The anchors (^,$) are what I needed. I basically had "d*\.d*" Adding > the anchors prevents extra decimal '.' characters. > > Thanks. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:1112 Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
