Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Re: Dividing and format with regular expression the perl wayby Roger (Parson) |
on Nov 27, 2003 at 20:42 UTC ( [id://310597]=note: print w/replies, xml ) | Need Help?? |
Well, just drop trailing dot-star in the regex and see the result. ;-) I want to get rid of anything after the first decimal point, the tailing (.*) let me do that. Of course I can also rewrite the regular expression as - But that requires 3 characters, and I am just too lazy. Besides there is an assumption that whatever passed in is a floating point.
In Section
Seekers of Perl Wisdom
|
|