Page 1 of 1

regular expressions in SQLite

Posted: Fri Mar 18, 2016 12:07 pm
by danielrr
Hi all,

I submitted this very question to the newbies board, but maybe this is the right place to do it. My apologies for the crossposting.

I think in order to be able to make queries on a SQLite database using regular expressions you need a function called regexp; and in order to use this function you need to compile a dynamic library extension. Is this right? If it is, How can you compile such a dynamic library extension to a SQLite database in Livecode? And if not, Which is the right way?

best,

Daniel

Re: regular expressions in SQLite

Posted: Thu Apr 14, 2016 3:27 pm
by MaxV
SQLite already supports the REGEXP operator:

Code: Select all

SELECT * FROM mytable WHERE myColumn REGEXP <regex>