summaryrefslogtreecommitdiff
path: root/utils/testregexp.cc
blob: fc8ed3477377939ea9f1335235da9a987a11261d (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];
	IvlRegExp re = s;
	if (re.Compile ()) {
		if (re.Match (s1))
			printf ("%s\n",s1);
	}
}