> re.split("(?i)\s*(and not|and|or)\s*", s)
Thanks, Frederik for the step by step howto! And also thanks to you, Dylan.
re.split("(?i)\s*(and not|and|or)\s*", s) is almost right.
I changed it to:
words = re.split("(?i)\s*( and not | and | or )\s*", s)
in order to handle words containing "or" or "and".
s = 'More, J. or Black and Mand, R.' works now, too.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
