I have an SQLITE Database\'s File which in one of the table columns there is some simple Regular Expressions.
These Expressions are something like /foo(.
You can use SQLiteDatabase::createFunction documentation here or PDO::sqliteCreateFunction documentation here
SQLiteDatabase::createFunction
PDO::sqliteCreateFunction
I did something like this:
sqliteCreateFunction('regexp', '_sqliteRegexp', 2); ?>
Use:
SELECT route FROM routes WHERE pattern REGEXP 'your/url/string' LIMIT 1