Subject: bug#2816: regexp-opt: does not optimize 'Abc' and
'abc'




A)

(regexp-opt
'("Abc"
"abc"))

=> "\\(?:[Aa]bc\\)"

B)

(regexp-opt
'("Abc"
"def"
"abc"))

=> "\\(?:Abc\\|abc\\|def\\)"

Shouldn't regexp-opt optimize B case as well?

Jari






Privacy