[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Regular Expression to remove comments in a file
From:       Mario <tweakBSD () gmx ! net>
Date:       2004-08-30 13:02:47
Message-ID: 200408301502.47937.tweakBSD () gmx ! net
[Download RAW message or body]

Am Montag, 30. August 2004 13:28 schrieb Jeroen Wijnhout:
> str.replace(QRegExp("^#.*$"), "\n");

I tried it but i doesn't work, sorry don't know what the exp. will do.

This is a part of the file I'm reading:

##############################################################
###  Splash screen configuration  ############################
##############################################################

splash_bmp_load="NO"            # Set this to YES for bmp splash screen!
splash_pcx_load="NO"            # Set this to YES for pcx splash screen!
vesa_load="NO"                  # Set this to YES to load the vesa module
bitmap_load="NO"
#bitmap_name="splash.bmp"

and that is what it should be after replacing alll

splash_bmp_load="NO"
splash_pcx_load="NO"
vesa_load="NO"  
bitmap_load="NO"

Hope that helps you to help me with my bad exp. problems!
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic