Re: [Tutor] Regexp with multiple patterns in Python

2005-08-16 Thread Kent Johnson
Kristian Evensen wrote: > What I want to do is to check for two patterns to make sure all > occurrences of pattern1 and pattern2 come in the same order as they do > in the file I parse. It it contains a number of computer-games I would > like the output to look something like this: > > PC, Batt

[Tutor] Regexp with multiple patterns in Python

2005-08-14 Thread Kristian Evensen
Hello,   I am working on a way to parse a file and wondered if there is a way to check for multiple patterns. The reason I wonder this is because it would make everything a lot easier regarding calculations on what words to use and so on.   What I want to do is to check for two patterns