X{10,20} means that X should exist at least 10 times but no more than 20 times [0-9] means any single number from 0 till 9 [0-9]{3} means any 3 numbers of 0-9 one after the other [~!@#$%^&*()_+] means a single character from the set of characters defined between the brackets
Now do you want 3 numbers one after the other or that there should be 3 numbers in the string total? Can you send a few example strings or talk about how it will be used? Also, do you want a single regex to do it all or can be it be in 2-3 steps (easiest)? On Mon, Jul 21, 2014 at 5:29 PM, UXB <denn...@uxbinternet.com> wrote: > > I am terrible at Regex's. I looked all over and am going blind. Is there > anyone here that can shorted my search? I need one to test true for: > > 10 to 20 Characters in length > 3 numeric characters in any order > 1 special character from basic list ~!@#$%^&*()_+ > > > Any help is appreciated. > > > Dennis Powers > UXB Internet - A website Design and Hosting Company > P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 > W: http://www.uxbinternet.com > W: http://www.ctbusinesslist.com > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358940 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm