[Issue 1249] New: regular expression pattern [.] not matches any character
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 26 16:21:31 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1249
Summary: regular expression pattern [.] not matches any character
Product: D
Version: 1.014
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: yidabu at gmail.com
regular expression pattern [.] not matches any character
The following code shows it:
import std.regexp;
import std.stdio;
void main()
{
char[] s = "a
b";
char[] p = "[.]+";
s = std.regexp.sub(s, p, "");
writefln("s=%s,",s); // s not changed
}
--
More information about the Digitalmars-d-bugs
mailing list