invalid TR1 regex syntax exception - by Bruno van Dooren

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


3
1
Sign in
to vote
ID 365994 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 9/3/2008 11:45:51 PM
Access Restriction Public

Description

Using TR1 regexes in VC2008 SP1.
The TR1 implementation of regex throws a syntax exception on the following expression:

a|

you could use it in a regular expression like this:
 (a|) to indicate that a string contains at a certain point either 
a or nothing

There are other ways to do this, but this syntax should be valid.
The .NET regular expression accept this syntax without a problem
Sign in to post a comment.
Posted by Microsoft on 1/14/2009 at 7:29 PM
Hi,

Thanks for reporting this bug. We have fixed it, and the fix will be available in VC10. Note that the fix was not present in the VC10 CTP, but it will be present in the next version of VC10 that you can get your hands on.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 9/4/2008 at 10:59 PM
Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team