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/functions-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