You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
312 B
17 lines
312 B
15 years ago
|
#include <kregexp3.h>
|
||
|
#include <kdebug.h>
|
||
|
#include <kinstance.h>
|
||
|
|
||
|
int
|
||
|
main()
|
||
|
{
|
||
|
KInstance app("# ");
|
||
|
|
||
|
// test for http://bugs.kde.org/show_bug.cgi?id=54886
|
||
|
KRegExp3 reg("^");
|
||
|
QString res = reg.replace(QString::fromLatin1("Fun stuff"),
|
||
|
QString::fromLatin1("[fun] "));
|
||
|
kdDebug() << res << endl;
|
||
|
|
||
|
}
|