Boost logo

Boost Users :

Subject: Re: [Boost-users] Regular Expression (vers. 1.34.1)
From: Salvatore Benedetto (salvatore.benedetto_at_[hidden])
Date: 2010-05-05 10:16:59


On 5 May 2010 16:10, Nat Goodspeed <nat_at_[hidden]> wrote:
>
> This might (or might not) work better:
> "\\.\\/\\w+(\\.txt)"
>

Indeed I was missing a backslash.

The following worked as I expected.

std::string expression("\.\/\\w+(\.txt)");

Thanks,
S.


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