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

Ticket #1444 (closed defect: wontfix)

Opened 15 years ago

Last modified 13 years ago

Regex engine doesn't obey end-of-string specifier when replacing

Reported by: pcwalton Assigned to: larsivi
Priority: major Milestone: 1.0
Component: Tango Version: 0.99.7 Dominik
Keywords: Cc:

Description

The following code causes the variable "baz" to be set to "foo.xyz", not "foo.dex" as expected:

        auto r = new Regex(r"\.[^.]+$");
        auto outputPath = r.replaceAll("foo.xyz", ".dex");

Replacing "foo.xyz" with "foo.xyz\n" does not fix the problem.

Change History

01/20/09 08:49:28 changed by larsivi

Hi pcwalton - Jascha is extremely busy atm - do you have the skills/time to look at some of the issues with this engine?

03/29/09 13:17:01 changed by larsivi

  • milestone changed from 0.99.8 to 0.99.9.

02/07/10 21:41:58 changed by larsivi

  • milestone changed from 0.99.9 to 1.0.

06/06/10 19:59:21 changed by kris

  • owner changed from jascha to larsivi.

08/04/11 01:22:09 changed by dhasenan

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

Resolving in favor of #2071.