This bug, plus one other, now fixed on [trunk][1]. I also added a new SQL function "regexpi(PATTERN,STRING)" that does case-independent REGEXP matching. And the regexp extension has been added to the [CLI][2]. [1]: https://www.sqlite.org/src/timeline?c=5d4535bfb603d7c8 [2]: https://www.sqlite.org/cli.html