On 03/07/2011 19:39, Tamas Rudnai wrote: > I think that is not worse than a regex in Perl:-) Indeed. The simple solution is to never use printf There is no way to know the parameters make sense. Strustrupp was=20 rightly against it in 1980s I sometimes use a regex in notepad++ if I have a huge text file (or a=20 lot of them) that need transformed in some way. Usually evil CSVs or=20 XMLs that are not quite right. If it's more than a one off I'd write a=20 program though. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .