BeRo1985 / flre

FLRE - Fast Light Regular Expressions - A fast light regular expression library
GNU Lesser General Public License v2.1
94 stars 23 forks source link

subtraction of disjoint character classes #70

Open benibela opened 3 years ago

benibela commented 3 years ago

This should not match:

writeln(TFLRE.Create('^(?:[^cde-[ag]]+)$', []).Find('agbfxyzga'));

First it needs to invert [cde], and then forbid [ag]