Format a string so that it appears like a properly formatted name. For example: "daVId" becomes "David" or "dr. bones" becomes "Dr. Bones". The code uses a single line of semi-complex Regex through the REReplace() function. Tutorial: http://thissideweb.blogspot.com/2005/06/coldfusion-proper-case-for-names.html
REReplace(LCase(URL.fullName), "(^[[:alpha:]]|[[:blank:]][[:alpha:]])", "\U\1\E", "ALL")
Original String: | dr. bones |
Converted String: | Dr. Bones |
Welcome to city living in Greenwood with a secure, away from the street home. Classic home features new hardwoods, tiled kitchen w/oak cabinets & stainless steel appliances. New wiring throughout. Beautifully updated basement w/raised ceiling. Seismically reinforced