The correct regex is:
"(?P [^,n]+),\d*--(?P [^,]+),(?P [^,]+),(?P [^,]+),(?P [^,]),(?P [^,]+),(?P [^,]\
*),(?P [^,] ),(?P [^,]),(?P [^,] )(?:,\d*--(?P .*))?"
The entire extra argument is encased in one "(?: ... )?". The other regexes suggested above allow invalid things, such as just "5-5,5-5,parent"
... View more