summaryrefslogtreecommitdiffstats
path: root/libkdepim/tests/test_kregexp.cpp
blob: 0644bbba5faff6c0ce65b302dac0a1f92a84cd9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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("^");
  TQString res = reg.tqreplace(TQString::tqfromLatin1("Fun stuff"),
			    TQString::tqfromLatin1("[fun] "));
  kdDebug() << res << endl;

}