I strongly suspect that Rereplace and Refind are thin wrappers around the
native Java RegEx stuff.  I know CFMX used an external implementation (from
Apache), because it shipped with a 1.3 JRE and the RegEx stuff is in Java
1.4, but CFMX 6.1 ships with 1.4.2, so I'd be quite surprised if it didn't
use the native Java libraries.

The actual functions it probably users are in the Matcher class, but the
syntax explaination is located here (in the Pattern class):

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html

Cheers,
barneyb

> -----Original Message-----
> From: Ben Forta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 05, 2004 1:27 PM
> To: CF-Talk
> Subject: RE: Serial Number
>
> Wow, I don't remember, but they have been supported for
> several versions
> already.
>  
> RegEx support is quite similar to Perl nowadays (was not always that
> way).
>  
> --- Ben
>  
>  
>  
> -----Original Message-----
> From: Jamie Jackson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 05, 2004 4:20 PM
> To: CF-Talk
> Subject: Re: Serial Number
>
>
> Thanks, Ben(s)
>
> How long have these been supported? I can't even remember how long
> I've been writing out regexes long-hand in CF, thinking that the
> shorthand classes weren't supported. I've known that POSIX bracket
> expressions worked, but the class shorthand is (welcome) news to me.
>
> Also, would you happen to know to which language's flavor of regex is
> CF most similar?
>
> Thanks,
> Jamie
> P.S. I do have the O'Reilly Regex book, so I have a reference for the
> standard stuff.
>
> On Thu, 5 Feb 2004 15:55:18 -0500, in cf-talk you wrote:
>
> >That are pretty standard regex metacharacters.
> >
> >Some are here:
> >http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/regexp12.htm
> >
> >--- Ben
> >
> >
> >-----Original Message-----
> >From: Jamie Jackson [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, February 05, 2004 3:51 PM
> >To: CF-Talk
> >Subject: Re: Serial Number
> >
> >
> >I've seen this notation popping up recently:
> >
> >\w
> >\d
> >
> >I see the following in the documentation
> >(http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/f
> unctions-p
> t
> >269.htm#1111522),
> >but where are the rest of them?
> >
> >New in ColdFusion MX: this function supports the following special
> >codes in a substring, to control case conversion:
> >\u - uppercase the next character
> >\l - lowercase the next character
> >\U - uppercase until \E
> >\L - lowercase until \E
> >\E - end \U or \L
> >
> >Thanks,
> >Jamie
> >
> >On Thu, 5 Feb 2004 15:16:56 -0500, in cf-talk you wrote:
> >
> >>Use the following regular _expression_:
> >>\w{3}\d{7}
> >>
> >>--- Ben
> >>
> >>
> >>-----Original Message-----
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, February 05, 2004 3:08 PM
> >>To: CF-Talk
> >>Subject: Serial Number
> >>
> >>
> >>How would I check to see if the first three digits of a number are
> >>alpha-numeric and the last 7 are numbers?
> >>
> >>Thanks!
> >>  _____  
> >>
> >>
> >>
> >  _____  
> >
> >
> >
>   _____  
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to