Opened 6 years ago

Closed 6 years ago

#12857 closed Bugs (worksforme)

boost::wregex failed for case insensitive expression

Reported by: Borivoj Kostka <kostka@…> Owned by: John Maddock
Milestone: Boost 1.62.0 Component: regex
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Expression

.*\.(?i:(doc|docx))

matching

a.doc a.DOC a.docx a.DOCX

doesn't match a.DOCX but matches all other strings.

If I change the order to

.*\.(?i:(docx|doc))

all strings are matched.

Tested with Visual Studio 2012 and gcc 5.3

Attachments (1)

boost_regex_test.cpp (1023 bytes ) - added by Borivoj Kostka <kostka@…> 6 years ago.
Testing code

Download all attachments as: .zip

Change History (2)

by Borivoj Kostka <kostka@…>, 6 years ago

Attachment: boost_regex_test.cpp added

Testing code

comment:1 by John Maddock, 6 years ago

Milestone: To Be DeterminedBoost 1.62.0
Resolution: worksforme
Status: newclosed

This was fixed in boost-1.62.

Note: See TracTickets for help on using tickets.