Re: [Pyparsing] Grouping when using asList()
Brought to you by:
ptmcg
From: Ralph C. <ra...@in...> - 2008-03-07 10:06:39
|
Hi Paul, > date = twoDigitInt("month") + '/' + twoDigitInt("day") + '/' + > twoDigitInt("year") > > Try to look past the "it's a function call" to "this is a lot easier > to specify a results name than that old way!". (However, if you need > to add the listAllMatches attribute, this still requires the explicit > call to setResultsName.) How about signifying in the string that listAllMatches should be true, e.g. 'month*'? Cheers, Ralph. |