Regular Expression Help

Lythoner at gmail.com Lythoner at gmail.com
Tue Feb 26 14:28:31 EST 2008


Hi All,

I have a python utility which helps to generate an excel file for
language translation. For any new language, we will generate the excel
file which will have the English text and column for interested
translation language. The translator  will provide the language string
and again I will have python utility to read the excel file target
language string and update/generate the resource file & database
records. Our application is VC++ application, we use MS Access db.


We have string table like this.

"STRINGTABLE
BEGIN
    IDS_CONTEXT_API_ "API Totalizer Control Dialog"
    IDS_CONTEXT         "Gas Analyzer"
END

STRINGTABLE
BEGIN
    ID_APITOTALIZER_CONTROL
                            "Start, stop, and reset API volume flow
\nTotalizer Control"
END
"
this repeats.....


I read the file line by line and pick the contents inside the
STRINGTABLE.


I want to use the regular expression while should give me all the
entries with in
STRINGTABLE
BEGIN
<<Get what ever put in this>>
END


I tried little bit, but no luck. Note that it is multi-line string
entries which we cannot make as single line


Regards,

Krish



More information about the Python-list mailing list