iveney / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Posix regular expressions seem to be inconsistent #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When used from Google Test, the posix regular expressions do not recognice
digit character class. Specifically, \d expression does not match digits. A
test in gtest-port_test.cc uses [0-9] in order to work. Is this due to the
way we use regex in gtest code or due to the particular implementation we
use? We should investigate.

Original issue reported on code.google.com by vladlosev on 31 Jan 2009 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by vladlosev on 3 Feb 2009 at 3:28

GoogleCodeExporter commented 9 years ago
It's not the way we use the POSIX regexp library.  It turns out that \d and \D
indeeded are not part of the POSIX extended regex syntax.

Original comment by zhanyong...@gmail.com on 20 Mar 2009 at 12:22

GoogleCodeExporter commented 9 years ago
This is how POSIX extended regex is meant to work.

Original comment by zhanyong...@gmail.com on 23 Mar 2009 at 7:54