Re: Refind on CFServer 5
CF5 regular expressions are POSIX rather than Perlish.So \d is being interpreted as either 'd' or '\d' (I forget offhand) rather than a digit. --Ben Doom [EMAIL PROTECTED] wrote: On MX this code works fine. On server 5 in returns that all variables are false: cfif refind(#getexpression.regexpression#, #ListGetAt(form.SerialNumber, i)#) The regexpression coming from the db looks like this: ^60C\d{9}$ Thanks! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Refind on CFServer 5
so, what do I use for cf5 to understand the _expression_? ^60C.*{9}$ CF5 regular expressions are POSIX rather than Perlish.So \d is being interpreted as either 'd' or '\d' (I forget offhand) rather than a digit. --Ben Doom [EMAIL PROTECTED] wrote: On MX this code works fine. On server 5 in returns that all variables are false: cfif refind(#getexpression.regexpression#, #ListGetAt(form.SerialNumber, i)#) The regexpression coming from the db looks like this: ^60C\d{9}$ Thanks! [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Refind on CFServer 5
If \d really is the problem here, then you can use [0-9] Taco Fleur Bloghttp://www.tacofleur.com/index/blog/ http://www.tacofleur.com/index/blog/ Methodology http://www.tacofleur.com/index/methodology/ Tell me and I will forget Show me and I will remember Teach me and I will learn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 8:27 AM To: CF-Talk Subject: Re: Refind on CFServer 5 so, what do I use for cf5 to understand the _expression_? ^60C.*{9}$ CF5 regular expressions are POSIX rather than Perlish.So \d is being interpreted as either 'd' or '\d' (I forget offhand) rather than a digit. --Ben Doom [EMAIL PROTECTED] wrote: On MX this code works fine. On server 5 in returns that all variables are false: cfif refind(#getexpression.regexpression#, #ListGetAt(form.SerialNumber, i)#) The regexpression coming from the db looks like this: ^60C\d{9}$ Thanks! _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]