
20 Mar
2012
20 Mar
'12
2:11 p.m.
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