me if you need that version).
<cfset capText = REReplace(text,"\b(\w)","\u\1","ALL")>
I didn't test because I'm working on cf5 right now, but it should work.
Pascal
> -----Original Message-----
> From: Deanna Schneider [mailto:[EMAIL PROTECTED]
> Sent: donderdag 15 april 2004 19:08
> To: CF-Talk
> Subject: CapFirst UDF
>
> Hi all,
> Has anyone written a UDF to capitalize the first letter of
> words that takes into account punctuation marks? In other
> words - something that would successfully capitalize the following:
> "i am not a crook," he said. (but we all knew he was.)
>
> (The capfirst() function on cflib would miss the first word
> of each sentence because of the " and (.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

