Boost Regex unknown number of var
- by Katrin Thielmann
I got a Problem with a regex expression and need help. I have some expressions like these in mein .txt File:
19 = NAND (1, 19)
regex expression : http://rubular.com/r/U8rO09bvTO
With this regex expression i got seperated matches for the numbers.
But now I need a regex expression with a unknown size of numbers in the bracket .
For example:
19 = NAND (1, 23, 13, 24)
match1: 19
match2: 1
match3: 23
match4: 13
match5: 24
I don't know the number of the numbers.
So i need a main expression for min 2 numbers in the bracket till a unknow number. I hope somebody can help me.