Parsing a search string
M.E.Farmer
mefjr75 at hotmail.com
Fri Dec 31 21:11:25 EST 2004
More information about the Python-list mailing list
Fri Dec 31 21:11:25 EST 2004
- Previous message (by thread): Parsing a search string
- Next message (by thread): Parsing a search string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
py>b = shlex.shlex(a) py>while 1: ... tok = b.get_token() ... if not tok: break ... print tok ... moo cow + "farmer john" - dog Just wanted to share this just in case it might be relevant . It seems if we don't add +- to wordchars then we get a different split on "farmer john". M.E.Farmer
- Previous message (by thread): Parsing a search string
- Next message (by thread): Parsing a search string
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list