Boost logo

Boost Users :

Subject: [Boost-users] [Regex] Is it possible to match any "linebreak"
From: Christoph Duelli (duelli_at_[hidden])
Date: 2012-03-20 10:11:50


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.)

I know I could modify the regex
   [[:digit:]]{3}([^\n\r]+)[\n\r]*
but I was hoping there might be an easier solution like a character class
[[:linebreak:]], or maybe an escaped character like \R or something like
that.

(I am using Boost 1.43 in the relevant project.)

Thank you and best regards
Christoph


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