blob: 5949ec8ff2e89d24b6b52d13499951352d31e984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}
}
|