Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-08-28 04:23:47

> But I use [^\n]* instead, and this pattern works well in a vbs
> script(redundant '\' is removed,of course)

Apologies it's not the \\s+ that's gobbling up the newline: it's the [^/]*.

A newline is not a '/' after all, try [^/\n]* instead.


> "John Maddock" <john_at_[hidden]> $)ATZNDUBVPLa5=:
>>>I want to make a program to grep all symbols in header file,like:
>>> >>>
>>> A singl symbole definition line will be extract to three parts:
>>> 1. symbol itself
>>> 2. the value of a symbol, it's a signed 32-bit value
>>> 3. comments about the symbol
>>> I use the following pattern:
>>> std::string ptn =
>>> I hope this pattern could do what I want, but when I use grep to do
>>> the parsing, I got from above two lines:
>>And so you should: the newline is a valid space character, if you don't
>>to match newlines then use [[:blank:]]+ instead.


> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at