Hello *,
I need to parse some logger lines using boost xpressive. The line looks like:
fname:line_no [severity] logging message
When building the xpressive regex if I need to match the severity (e.g. [INFO]) I need to escape the square brackets... Is there some xpressive construct (like as_xpr) which makes from all characters literals. So that I can write smth like:
sregex re = *_ >> literals("[INFO]") >> *_
Many thanks,
Ovanes