Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1101 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

Regex - Incorrect output on floating point match

Reported by: darrylb Assigned to: jascha
Priority: major Milestone: 0.99.7
Component: Core Functionality Version: trunk
Keywords: triage Cc:

Description

As compared to PCRE:

Testing regex '(([0-9_]*\.[0-9][0-9_]*([eE][\+\-]?[0-9][0-9_]*)?)|([0-9][0-9_]*[eE][\+\-]?[0-9][0-9_]*))([fFLi]|[fFL]i)?'...
        (input string '0.32476e-4f')
        PCRE::Regex
                0 : '0.32476e-4f'
                1 : '0.32476e-4'
                2 : '0.32476e-4'
                3 : 'e-4'
                4 : ''
                5 : 'f'
        Tango.Regex
                0 : '0.32476'
                1 : '0.32476'
                2 : '0.32476'
                3 : ''
                4 : ''
                5 : ''
Testing regex '(([0-9_]*\.[0-9][0-9_]*([eE][\+\-]?[0-9][0-9_]*)?)|([0-9][0-9_]*[eE][\+\-]?[0-9][0-9_]*))([fFLi]|[fFL]i)?'...
        (input string '0.32476e-4g')
        PCRE::Regex
                0 : '0.32476e-4'
                1 : '0.32476e-4'
                2 : '0.32476e-4'
                3 : 'e-4'
        Tango.Regex
                0 : '0.32476'
                1 : '0.32476'
                2 : '0.32476'
                3 : ''

Change History

05/24/08 12:47:12 changed by larsivi

  • keywords set to triage.

07/02/08 17:12:12 changed by jascha

  • status changed from new to closed.
  • resolution set to fixed.