PHPOffice/PHPExcel — pull request #230 by danielcsgomes (2013-08-08 11:17:59+00:00)
Title: [Bugfix] Allow leading zeros

When setting a `string` value only containing number and with leading zeros the actual regex will be matched and set the value type of the number type.
This will cause, when setting the cell, the conversion from `string` to `float` and the leading zeros will be removed.

The simple way I found to solve this issue is to change the regex in order when the first `number` is a zero inside a `string` the type of the value will stay the same (a `string`) otherwise change to `number`.

Also I added the plus sign to the regex expression and add condition for the fraction part.