There are such expressions like:
name=="sometext"
value!=4
I would like to split such expressions with string separators like “==” and “!=” and keep these separators, so result would be:
name=="sometext" -> [name] [==] ["sometext"]
value!=4 -> [value] [!=] [4]
How can it be done with Boost or some other library?
With boost I would use this simple regex :
Edit : provided that the expression is a string.
Edit 2 : explanation of the regex