Try this out. I didn�t change the function. I just added a regex on output
to cap any letter following an open bracket   [



<cfset tempvar = capFirstTitle("This is a [test] of the [cap] function.")>

<cfoutput>

#rereplace(tempvar, "\[([a-zA-Z])", "[\u\1", "ALL")#

</cfoutput>

I guess if you really wanted to, you could put the regex in the finction.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 9/21/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 9/21/2004
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to