[portland] Script to Change UPPER CASE to Mixed Case

Rich Shepard rshepard at appl-ecosys.com
Tue Sep 22 17:45:12 CEST 2009

On Tue, 22 Sep 2009, Dylan Reinhardt wrote:

> Consider the following lines that you might find in a "street address" line:
> - Dept. of Motor Vehicles
> - Attn: Guido van Rossum
> - Attn: Henry Higgins III
> - San Francisco Chapter
> - PO Box 1234
> - Mail Stop C5A
> - Attn: A/R


   The above are true for generic situations. The data I want to clean have
the equivalent of all of the above in separate strings, and the name of the
entity, too. So, if all strings are placed in title case (i.e., the first
letter of each word capitalized), it will be relatively trivial to correct
the meaningful strings (e.g., "Or" to "OR" and "Po" to "PO") afterwards.


Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

More information about the Portland mailing list