Boost Regex unknown number of var

Posted by Katrin Thielmann on Stack Overflow See other posts from Stack Overflow or by Katrin Thielmann
Published on 2012-12-14T23:01:01Z Indexed on 2012/12/14 23:03 UTC
Read the original article Hit count: 754

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about regex

Related posts about boost