RE: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Rick Faircloth
e- From: Peter Boughton [mailto:[EMAIL PROTECTED] Sent: Saturday, March 10, 2007 5:57 PM To: CF-Talk Subject: Re: How to turn this into a REGEX for use in javascript? -- Does your code ... ? Yup. -- If so, that would do the same thing. Well it achieves the same result, but I would guess that

Re: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Peter Boughton
> >Rick > >-Original Message- >From: Peter Boughton [mailto:[EMAIL PROTECTED] >Sent: Saturday, March 10, 2007 2:22 PM >To: CF-Talk >Subject: Re: How to turn this into a REGEX for use in javascript? > >Odd way of doing things? > >I&#x

RE: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Rick Faircloth
ch 10, 2007 6:22 PM To: CF-Talk Subject: Re: How to turn this into a REGEX for use in javascript? Rick, Here's a similar statement that I use in my own jQuery validation plug-in. It validates phone numbers saying basically, after stripping out all the parenthesis and dashes, if the remaining

Re: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Christopher Jordan
gt; > > > -----Original Message----- > From: Dinner [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 10, 2007 4:02 PM > To: CF-Talk > Subject: Re: How to turn this into a REGEX for use in javascript? > > You could even put the below in the onchange, so the user knows wha

RE: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Rick Faircloth
0, 2007 2:22 PM To: CF-Talk Subject: Re: How to turn this into a REGEX for use in javascript? Odd way of doing things? I'd switch it to something like this: . Which (I think) can be translated into this JS: if (sale_price.match(/[^0-9.$,]/) == false) { . } >Hi, all. > >

RE: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Rick Faircloth
[mailto:[EMAIL PROTECTED] Sent: Saturday, March 10, 2007 4:02 PM To: CF-Talk Subject: Re: How to turn this into a REGEX for use in javascript? You could even put the below in the onchange, so the user knows what's gonna happen ahead of time. Assuming the below works. ;-) On 3/10/07, Peter

Re: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Dinner
You could even put the below in the onchange, so the user knows what's gonna happen ahead of time. Assuming the below works. ;-) On 3/10/07, Peter Boughton wrote: > > Odd way of doing things? > > I'd switch it to something like this: > > > > > Which (I think) can be translated into this JS

Re: How to turn this into a REGEX for use in javascript?

2007-03-10 Thread Peter Boughton
Odd way of doing things? I'd switch it to something like this: Which (I think) can be translated into this JS: if (sale_price.match(/[^0-9.$,]/) == false) { } >Hi, all. > >I've been tinkering with validation using js and would >like to know how to turn this into a regex for use in