Skip to Content
0
Former Member
Apr 08, 2010 at 08:37 AM

Leading Zeros

12 Views

Hi,

I have this UDF that provides leading zeros and it works but only if the source field contains only numerical data. I want it to provide leading zeros even if there are some alphabetical data in it i.e 66V01342.

My current rule is: if (myString.matches("[0-9]*"))

(I thought that "*" would do it but it doesn't.

Thanks