Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  Pyme problems  PythonNext Question:  Solving web mobile web crossover  Wireless Mobile Development
Question Regular Expressions help ( CodeGuru Forums Python )
Updated: 2008-08-12 06:09:33 (0)
Regular Expressions help

Hi I'm writing a parser for a certain piece of code right now, and I can't seem to get my regular expressions to do what I want them to do. I have this large file I need to turn into XML and I want to match everything in a certain subset of the string except .SECTION.

So, what I have so far is
Code:
reg1 = re.compile("TAG1[^\.SECTION]*?TAG2")


Now when I do this it is not matching this as it was a list of characters, when in I want it to match anything except this whole string. How do I get this to happen?

Previous Question:  Pyme problems  CodeGuru Forums  PythonNext Question:  Solving web mobile web crossover  CodeGuru Forums  Wireless Mobile Development

- Source: Regular Expressions help CodeGuru Forums Python
- Previous Question: Pyme problems CodeGuru Forums Python
- Next Question: Solving web mobile web crossover CodeGuru Forums Wireless Mobile Development





AllQuests.com