Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I want to remove ".bmp" from my file name using QRegExp. My file name is formatted as "Alphanumerics.bmp". Could someone help me with constructing QRegExp for this?
How can I use QRegExp for removing a part of QSting ?
Regards,
@ QString mystring("alphanumerics.bmp");
mystring.replace(".bmp", ""); @
Done :) No need for regexp here. Alternatively, you can get the extension using QFileInfo::suffix().