choco-solver icon indicating copy to clipboard operation
choco-solver copied to clipboard

Regular with negative numbers

Open jgFages opened this issue 9 years ago • 2 comments

Seems to be a problem

jgFages avatar Apr 22 '15 00:04 jgFages

The regular expression "<-9>1*" is not accepted since "-9" does not correspond to any Character. Recall that Character .MIN_VALUE= '\u0000' (0) and Character .MAX_VALUE= '\uFFFF' (65535).
We certainly should forbid values not in that range.

cprudhom avatar Apr 27 '15 10:04 cprudhom

There are other troubles with FiniteAutomaton: ".*" or "[^12]" took ages to retrieve the alphabet.

cprudhom avatar Apr 27 '15 13:04 cprudhom