need help extracting data from a text file
nephish at xit.net
nephish at xit.net
Mon Nov 7 10:04:24 EST 2005
Hey there,
i have a text file with a bunch of values scattered throughout it.
i am needing to pull out a value that is in parenthesis right after a
certain word,
like the first time the word 'foo' is found, retrieve the values in the
next set of parenthesis (bar) and it would return 'bar'
i think i can use re to do this, but is there some easier way?
thanks
More information about the Python-list
mailing list