Regular expressions
William Park
opengeometry at yahoo.ca
Sat Oct 25 19:43:37 EDT 2003
Kill Bill <bill at kill.com> wrote:
> Also, if yipee is a variable, what happens when I do?
>
> re.search("[yipee]*", line):
>
> This will treat yipee as a string correct? I want it to treat yipee as a
> variable and perform the different combinations on whatever is inside the
> variable.
Use round bracket (ie. parenthesis) instead of square one, ie.
(yipee)*
> "Kill Bill" <bill at kill.com> wrote in message
> news:bneu7i$10u2ht$1 at ID-198839.news.uni-berlin.de...
>> I'm trying to find all combinations of the a string.
>> I found that [blah]* gives it to me but it uses the same letter multiple
>> times which I dont' want.
--
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution for data management and processing.
More information about the Python-list
mailing list