From 09f57c8dffd9a8ba0983cce13381aef716f43801 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 28 Nov 2000 14:19:34 +0000 Subject: *** empty log message *** --- utils/testregexp.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/testregexp.cc (limited to 'utils/testregexp.cc') diff --git a/utils/testregexp.cc b/utils/testregexp.cc new file mode 100644 index 0000000..5949ec8 --- /dev/null +++ b/utils/testregexp.cc @@ -0,0 +1,17 @@ +#include +#include +#include "RegExp.h" + + +main (int argc, char** argv) +{ + char* s = "toto"; + char* s1 = "tota toto"; + if (argc > 1) + s1 = argv[1]; + CcuRegExp re = s; + if (re.Compile ()) { + if (re.Match (s1)) + printf ("%s\n",s1); + } +} -- cgit v1.1