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

Ticket #1269 (new enhancement)

Opened 16 years ago

Last modified 14 years ago

Regex Module Discards Attribute Flags

Reported by: BenjiSmith Assigned to: larsivi
Priority: normal Milestone: 1.0
Component: Core Functionality Version: trunk
Keywords: Cc:

Description

Since the RegExpT documentation doesn't include any details about regex flags (case insensitive, extended with regex comments, etc), I looked at the source code and noticed that the constructor discards the 'attributes' string:

this(char_t[] pattern, char_t[] attributes=null)
{
   this(pattern, false, true);
}

I'd like to request supporting at least the "imsx" flags from Perl, if not the larger list of "imsudx" from Java.

http://www.perl.com/doc/manual/html/pod/perlre.html http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html

Thanks!

Change History

01/07/09 22:18:32 changed by larsivi

  • type changed from defect to enhancement.

#961 marked as duplicate

01/07/09 22:20:38 changed by larsivi

See also #1427 - assuming 'm' should work, current default behaviour of having multiline matching on is probably wrong.

03/27/09 01:41:03 changed by dhasenan

That parameter should be removed until it is supported.

03/29/09 15:01:03 changed by larsivi

  • milestone changed from 0.99.8 to 0.99.9.

02/07/10 21:39:50 changed by larsivi

  • milestone changed from 0.99.9 to 1.0.

06/06/10 20:00:34 changed by kris

  • owner changed from jascha to larsivi.