Page 1 of 1

Remove leading zeros

Posted: Sat Sep 02, 2006 9:43 am
by othni
I just want to remove leading zeros.

I tried:


But it removes only the first one. This is my Trial Text:


Al leading zeros have to be removed. Maybe is so easy I do not see it.

Or maybe it is Friday Night at the office after 7:30pm and my brain is home already?

Posted: Mon Sep 04, 2006 12:34 pm
by DataMystic Support
Perl pattern by default are non-greedy, so either re-write the pattern as:


or change the pattern options to greedy.

Posted: Tue Sep 05, 2006 5:59 am
by othni
Thank you it worked great