diff --git a/src/Decimal.php b/src/Decimal.php index 2a374ae..f9b54f9 100644 --- a/src/Decimal.php +++ b/src/Decimal.php @@ -18,7 +18,7 @@ class Decimal { const DEFAULT_SCALE = 16; const CLASSIC_DECIMAL_NUMBER_REGEXP = '/^([+\-]?)0*(([1-9][0-9]*|[0-9])(\.[0-9]+)?)$/'; - const EXP_NOTATION_NUMBER_REGEXP = '/^ (?P [+\-]?) 0*(?P [0-9](?P \.[0-9]+)?) [eE] (?P [+\-]?)(?P \d+)$/x'; + const EXP_NOTATION_NUMBER_REGEXP = '/^ (?P [+\-]?) 0*(?P [0-9]+(?P \.[0-9]+)?) [eE] (?P [+\-]?)(?P \d+)$/x'; const EXP_NUM_GROUPS_NUMBER_REGEXP = '/^ (?P \d*) (?: \. (?P \d+) ) E (?P[\+\-]) (?P\d+) $/x'; /**