Ick, numeric ranges are actually pretty difficult to do in regex. If
possible I would do two distinct functions and "wrap" a regex for the
numeric pattern ##.# with a separate range check for 0-40. Where will you be
implementing this? In CF functions, in a validation in a cfinput, or some
freestanding javascript?



On Mon, Sep 20, 2010 at 11:03 AM, <[email protected]> wrote:

>  Here, let me Google That For You...
>
> http://www.txt2re.com/
>
>
> *James E. Thomas*
> Baker Botts L.L.P. Web Developer
> office: 713.229.2196 | mobile: 832.373.8117
>
>
>  ------------------------------
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Mark Davis
> *Sent:* Monday, September 20, 2010 10:44 AM
> *To:* [email protected]
> *Subject:* [houcfug] regex help
>
> Where are the regex experts?  I fully admit I suck at regex so I am asking
> for help.  Can anyone help me construct a regex that will accept numbers 0
> through 40 (inclusive) and allow for a decimal point and one decimal place?
> So 0, .5, 6.8 and 40 are valid.   3.77, 40.1 are not valid.
>
> Who wants to be my hero?
>
> Thanks
>
> Mark
>
> --
> You received this message because you are subscribed to the "Houston
> ColdFusion Users' Group" discussion list.
> To unsubscribe, send email to [email protected]
> For more options, visit http://groups.google.com/group/houcfug?hl=en
>
> *Confidentiality Notice:* The information contained in this email and any
> attachments is intended only for the recipient[s] listed above and may be
> privileged and confidential. Any dissemination, copying, or use of or
> reliance upon such information by or to anyone other than the recipient[s]
> listed above is prohibited. If you have received this message in error,
> please notify the sender immediately at the email address above and destroy
> any and all copies of this message.
>
>
>
> --
> You received this message because you are subscribed to the "Houston
> ColdFusion Users' Group" discussion list.
> To unsubscribe, send email to [email protected]
> For more options, visit http://groups.google.com/group/houcfug?hl=en
>

-- 
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [email protected]
For more options, visit http://groups.google.com/group/houcfug?hl=en

Reply via email to