DADGUMMIT!
Once upon a time I used to use a regex that IIRC used tr to convert the case of strings on word boundaries and I just can't remember how I did it.
Example: I have a name that is in all caps "YOSEMITE SAM" and I want to convert it to "Yosemite Sam."
I remember doing this and it was really simple, but dadgummit if I can remember or figure it out again. The worst part of it is that I used it as an example in a class I taught and my lecture notes are not here they are at home.
Just about as bad as losing the formula for ice cubes.
| Peter L. Berghold | Schooner Technology Consulting, Inc. |
| Peter@Berghold.Net | www.berghold.net |
| Unix Professional Services | |
In reply to Changing case on a word boundary by blue_cowdawg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |