Try downloading cf_capitalize from the tag gallery. Maybe that'll work for
you.
|-----Original Message-----
|From: Richard Kuryk [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 26, 2001 3:09 PM
|To: CF-Talk
|Subject: Title Case for proper names.......
|
|
|I would like to write a regular expression in ColdFusion that
|would fix the
|case from the database or a form field (ie ROY G. BIV ~ Roy G.
|Biv). Right
|now I have:
|
|REReplace(Attributes.original, "([a-z]+)\1 ", "\1", "ALL" )
|
|the one thing I can't figure out is how to apply changes to the \1.
|
|In perl you can do stuff like:
|\l lowercase one char
|\u uppercase one char
|\L lowercase to the end of the word
|\U uppercase to the end of the word
|
|I can't seem to figure out if you can do this in Cold Fusion? I have
|written this using Left, Ucase and Lcase but I would like to
|do it using a
|regular expression, it is probably much more efficient.
|
|Thank you very much
|
|Rich
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists