Regular Expressions
Oriana
oriana.falco at thalesesec.com
Wed Aug 25 12:02:40 EDT 2004
More information about the Python-list mailing list
Wed Aug 25 12:02:40 EDT 2004
- Previous message (by thread): Regular Expressions
- Next message (by thread): Regular Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi! I've been working with Python for about two months now but I just started learning about regular expressions. My question is the following. I have a source file that contains code and comments. A piece of the comments contains a revision history that I would like to erase completely from the file since I never update it and I don't use it anymore. The file looks something like /**************************************** * Some info * * More info * *---------------------------------------- * * Revision History: * * blah * blah * blah * *---------------------------------------- I would like to write some sort of regular expression to replace all the text from the first dotted line up to the first asterisk that it's followed either by another asterisk or by another *---- line.....please help, I don't know where to start!!!
- Previous message (by thread): Regular Expressions
- Next message (by thread): Regular Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list