On 11/19/2011 11:42 AM, André Hentschel wrote: > this catches more than one 0 after the space and possible 0s after the x > + if (/[[:space:]]0+x0*101$/) { For more then one you should use "+" not "*". "*" means any number, including 0. Vitaliy