John Maddock wrote:
Is there a way to have a regex like [[:digit:]]{3}([^\n]+)\n? have \n match any line breaking character? (The processed files might have Unix or DOS line endings.)
Use \R, see:
http://www.boost.org/doc/libs/1_49_0/libs/regex/doc/html/boost_regex/syntax/...
HTH, John.
Thank you John.
Somehow I must have overlooked \R in the docs.
However, I still have one issue with \R.
In the following code everything works fine if I use r2.
If r1 the matches' captures do contain the newlines.
In short: ([^\\R+]) does not seem to capture all non-linebreak characters.
Should it? Or is this just a misunderstanding on my part?
#include