Paul, Tim, Rich Thanks that works
Guess I'm still shaking off yesterday's drinks! Kola >> -----Original Message----- >> From: Paul Johnston [mailto:[EMAIL PROTECTED] >> Sent: 16 January 2004 16:22 >> To: [EMAIL PROTECTED] >> Subject: RE: [ cf-dev ] need another pair of eyes to look at this simple >> regex >> >> > > I have the following which is supposed to return true if >> > > string contains 2 or more numbers - can anyone see what I'm >> > > missing here (it always returns false). >> > > >> > > if( not reFindNoCase("([0-9]){2,}", "k7p2oog"){ >> > > return true; >> > > } else { >> > > return false; >> > > } >> >> Also, if you want to find out if there are 2 numbers in the regex, find: >> >> .*[0-9].*[0-9] >> >> Which is, 0 or more of anything, then a number, then 0 or more of >> anything, then a number. >> >> Paul >> >> >> >> -- >> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
