Relatively succinct but I'll be a lot of CF programmers would have to
spend some time figuring out what that did =)  I didn't know about
those special replace sequences.

Rick

On Tue, Aug 10, 2010 at 1:26 AM, Michael Dinowitz
<mdino...@houseoffusion.com> wrote:
>
> In ColdFusion, but less convoluted.
>
> REReplace(string, '^(.+)$', '\U\1\E')
> ^(.+)$ - starting at the beginning of the string, capture all
> characters till the end
> \U - make all characters after it upper case until a \E is reached.
>
> http://www.houseoffusion.com/tutorials/regular-expressions/special-backreference.cfm

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:324610
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to