diff options
author | chatty | 2000-11-28 14:19:34 +0000 |
---|---|---|
committer | chatty | 2000-11-28 14:19:34 +0000 |
commit | 09f57c8dffd9a8ba0983cce13381aef716f43801 (patch) | |
tree | 49c5faa7cd1b76eea36169b5ecce09411b2802c2 /utils/testregexp.cc | |
parent | 2575756ec6f41bd05bf4505ccc0253fad0ed77c4 (diff) | |
download | ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.zip ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.gz ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.bz2 ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.xz |
*** empty log message ***
Diffstat (limited to 'utils/testregexp.cc')
-rw-r--r-- | utils/testregexp.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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 <stdlib.h> +#include <stdio.h> +#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); + } +} |