Converting capital letters to small letters

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

DataMystic
Newbie
Posts: 2
Joined: Mon Mar 16, 2009 5:23 am

Post by DataMystic » Mon Jul 13, 2009 11:35 pm

TextPipe (whcih is where EasyPatterns come from) actually has a predefined filter to case names correctly, handling Mac/Mc and d' and O' and Van/De etc. It's about 15 regex terms. It's called etext/fix name capitalization.fll
Regards,

Simon Carter, DataMystic Melbourne, Australia
http://www.DataMystic.com +61.3.9913.0595 (GMT+10 hours)
TextPipe: Text Conversion, Reformatting and Extraction Workbench
PCMAG - "The ultimate text conversion and manipulation tool"

zabros2020
Pro Scripter
Posts: 70
Joined: Sun May 03, 2009 11:49 pm
Location: AU

Post by zabros2020 » Fri Jul 17, 2009 1:56 am

hey guys, sorry for the delayed response, i have been out with the swine flue, of all things.

Thanks so much for all the suggestions and codes, I guess what marcus has written actually does exactly what we need. We can make exceptions for al-Malki and the rest :roll:

Thank you so much for your code marcus, the one that worked for me was
Let>name=JOHN SMITH
RegEx>(?new_name=
Let>pos=0
Repeat>pos
Let>pos=pos+1
Let>ch={Copy(%temp_name%,%pos%,1)}
If>ch=x
Let>ch={Copy(Lower(%name%),%pos%,1)}
Endif
Let>new_name=%new_name%%ch%
Until>pos={Length(%temp_name%)}

MessageModal>new_name
Cheers and a great big THUMBS UP!!!

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts