mxTextTools Question, Number 2 :)
Stephen Hansen
stephen at cerebralmaelstrom.com
Sun Jul 16 02:30:48 EDT 2000
Okay. I've hit a snag. :) My prior question was on a 'better way', but
with this one, i'm not sure if its even possible, exactly...
Given a string: "This that"
I want to capture everything up until the whitespace, so:
('Text',AllNotIn,whitespace)
...works, I suspose... but, here's the harder part. I want to ignore that
whitespace as delimiter if the next character is a special
So, "This &that" would end up capturing "This that".
For the life of me I can't even fathom how to do the above! Well, I have a
vague conception of what needs to be done but can't get it down on
paper(Y'know what I mean. :))
Note that "This &that &are &very &nice &things" would end up with "This and
that are very nice things"
Thanks for any help anyone has. :)
--Stephen
More information about the Python-list
mailing list