seach for pattern based on string

richie05 bal richie8105 at gmail.com
Tue Aug 24 12:33:11 EDT 2010


i am starting to learn python and I am stuck with query I want to
generate with python
File looks something like this
TRACE: AddNewBookD {bookId 20, noofBooks 6576, authorId 41,
publishingCompanyId 7}
TRACE: AddNewBookD {bookId 21, noofBooks 6577, authorId 42,
publishingCompanyId 8}

I want to first search for AddNewBookD
if found
   store bookId, noofBooks, authorId and publishingCompanyId

I know how to search for only AddNewBookD or find the pattern bookId
20, noofBooks 6576, authorId 41, publishingCompanyId 7 but I don't
know how search one based on another.



More information about the Python-list mailing list