David - I'm not getting the same results. Run this test program: --------------- import pyparsing as pp import sys
def test(s): results = pp.OneOrMore( pp.Word(pp.alphas) ).parseString( s ) print repr(s),"->",list(results) print "Python version:", sys.version print "pyparsing version:", pp.__version__ test("abc def") test("abc") --------------- The output I get is: Python version: 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] pyparsing version: 1.3.1 'abc def' -> ['abc', 'def'] 'abc' -> ['abc'] What versions of pyparsing and Python are you using? -- Paul -- http://mail.python.org/mailman/listinfo/python-list