Yeay! Golf...
Adam D. Lopresto wrote: [...golf...] > /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/ #50 chars [...more golf...] > Of course, that's because we use perl6's strengths. > > :i/^(+|-)?(\d*[\.\d*]?)<($2=~/./)>[E([+|-]?\d+)]?$/ #51 Clever! But.... If we are allowed to use all of perl6 in this particular (golf-)course, I suggest: /<c_float>/ That way I get it down to 11 characters. Perl6 will be a *great* language. David -- www.panmedia.dk - perl consulting in Denmark, Scandinavia, Europe.