#8569 closed Bugs (fixed)
boost::regex crashes
Reported by: | anonymous | Owned by: | John Maddock |
---|---|---|---|
Milestone: | To Be Determined | Component: | regex |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
boost::wregex reg(pattern, boost::regex::perl | boost::regex::icase);
where pattern is: L"(SLA_LOG.*?)
s*{
s*PRX
s*=>
s*(
d+).*?"
Crashes when parsing pattern. Compiled under MS VS 2010. Please help.
Change History (6)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Component: | None → regex |
---|---|
Owner: | set to |
comment:3 by , 9 years ago
To be precisely it doesn't crash, it just generates an exception when parsing: '{' character. Perl handles this correctly, here - it has to be escaped in order to work correctly...
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Sorry, but the correct pattern is:
L"(FILE_TYPE.*?)\\s*{\\s*PRIO\\s*=>\\s*(\\d+).*?"