Regexp filters

This adds support for the REGEXP operator using the syntax /regexp/ in the
filter line boxes.

A new helper option for a not-containing filter is added using this new
syntax. This could be simplified using a NOT LIKE filter, but we don't
currently support that.

The "Use in Filter Expression > Containing" option escapes a possible
slash in the beginning, so it is not interpreted as a regexp filter.

See issue #1522
This commit is contained in:
mgrojo
2018-11-04 19:58:12 +01:00
committed by Manuel
parent a393bbf25d
commit c923cc29b5
5 changed files with 37 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ private:
void copy(const bool withHeaders, const bool inSQL);
void paste();
void useAsFilter(const QString& filterOperator, bool binary = false);
void useAsFilter(const QString& filterOperator, bool binary = false, const QString& operatorSuffix = "");
void duplicateUpperCell();
typedef QList<QByteArray> QByteArrayList;