Boost logo

Boost Users :

From: llwaeva_at_[hidden]
Date: 2007-03-16 04:23:36


>Presumably it's because you're not anchoring the regexp to the start of the string - you're original regexp will work with 2 #s because
> it finds a match starting at the 2nd one. If you were to start your regexp thus: "^[#]P" then it would not say that the ## case was correct.

Thanks! But it seems still not solve the problem Because the pattern being searched doesn't necessary locate at the
beginning of the source string, i.e. the source is likely "abcdefgd##P{xyz}ewerw"

Thanks, anyway.


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