Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6042 closed Bugs (fixed)

regex: Exception for: wregex exp(L"fo(o|b)ar \\1", regbase::extended)

Reported by: thomas_linder_puls@… Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost 1.47.0 Severity: Not Applicable
Keywords: Cc:

Description

This line of code gives an exception:

wregex exp(L"fo(o|b)ar \\1", regbase::extended);

It seems to be the \1 part that cause the problem.

(Running in a 32bit program on a 64bit Windows 7).

Change History (2)

comment:1 by thomas_linder_puls@…, 11 years ago

Resolution: fixed
Severity: ShowstopperNot Applicable
Status: newclosed

Sorry I now realize that regbase::extended includes regbase::no_bk_refs.

comment:2 by John Maddock, 11 years ago

Right - POSIX extended regular expressions don't support backreferences - use Perl compatible re's if you want that feature.

Note: See TracTickets for help on using tickets.