D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7739 - regex fails to accept \p in expression of unicode properties
Summary: regex fails to accept \p in expression of unicode properties
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-19 19:47 UTC by Jay Norwood
Modified: 2012-03-20 03:16 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jay Norwood 2012-03-19 19:47:00 UTC
dmd 2.058
win7-64

void wcp (string fn)
{
	enum ctr =  ctRegex!("\p{WhiteSpace}","m");
}

------ Build started: Project: a7, Configuration: Release Win32
------
Building Release\a7.exe...
a7.d(210): undefined escape sequence \p
Comment 1 Dmitry Olshansky 2012-03-20 03:16:50 UTC
It's jsut wrong bug report, D string literal as C one do have escaping of their own, use raw string literals or double escape \\.

It's dmd lexer that complains here btw.