Here is my problem
i use QRegexp in the QT library to do a capture of a prolog expression like this
ma(v,c).
with this regular expression
([a-z][A-Za-z0-9]*)(\\()([A-Za-z0-9]*,)*([A-Za-z0-9]*)(\\))(\\.)
in this case it gives me
"ma" "(" "v" "," "c" ")" "."
but when i try this prolog sentence
ma(v,c,r).
it only gives me
"ma" "(" "c" "," "r" ")" "."
Is there a way to capture all the quantifiers ?