[Rest2web-develop] COnfigObj 4 Sections
Brought to you by:
mjfoord
From: Michael F. <mi...@pc...> - 2005-07-26 15:57:12
|
Hello Nicola, The guys who are using ConfigObj from SVN are happy to lose significant indentation. They ask if it will be possible to ignore whitespace between the brackets marking a section. This means the regex will have to look a bit more like (off the top of my head) : \s*((?:[\s*)+)(.*)((?:\s*\])+)\s*(#.*)? and then you'll have to count square brackets rather than just matching lengths ! Hope this is useful. Best Regards, Fuzzy http://www.voidspace.org.uk/python |