|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2008-05-13 04:40:36
Teddy Brielle wrote:
> Hi,
>
> I use the boost v1.35 regex library on Windows XP.
>
> Have I done something wrong in my pattern or in my code (match
> flags,...) ?
I think this is a bug: currently \B only matches *within a word*, but I've
checked what Perl does and that matches anything that isn't a word boundary,
including those outside of a word.
There's an easy fix that I'm committing, but in the mean time you could use:
(?<=\W)\*(?=\W)
as an alternative.
HTH, John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk