Closed andreasbaumann closed 6 years ago
I find counter examples, where it works. Seems to be completly undeterministic!
Found an example similar to the original one:
test:rul
EMAIL : /[a-zA-Z0-9.]+@[a-zA-Z]+\.[a-zA-Z]+/;
PHONE : /\+1 +[0-9]{3,4} *[0-9]{3,4} *[0-9]{3,4}/;
Phone = any( phone = PHONE "+1 234 234 234" );
Phone = any( phone = PHONE "+1 333 333 333" );
Email = any( email = EMAIL "theone@i.want" );
test0.txt:
test1:txt:
24234-2342342
234234
14-22
+1 234 234 234
+1 333 333 333
+1 433 553 433
blabla@blublu.bli
theone@i.want
strusPatternMatcher -C text/plain -m modstrus_analyzer_pattern -F -K -p test.rul tests
load program ...
ERROR failed to load program: failed to load pattern match program: failed to define regular expression pattern symbol: symbol defined twice: 'theone@i.want'
If I comment out both 'Phone', then it works. Also if I comment out the 'Email'.
file tests
is a file list for -F:
test0.txt
test1.txt
Fixed in pattern matcher: Could only define one type of symbol
I have the following: