|
Boost Users : |
From: Rob Willis (rob.willis_at_[hidden])
Date: 2005-09-27 16:28:42
The following regex should match any document that IS NOT a pdf file:
.*[.](?!pdf$).*$
This regex should match:
Mynotes.doc
It should fail on:
Myinfo.pdf
However, the above regex returns true on both using boost 1.33.0.
But positive lookahead works fine:
.*[.](?=pdf$).*$
Above regex correctly matches only documents ending in .pdf .
Can anyone confirm this is a bug?
Thanks,
-Rob
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net