Filter Rules

supa

what should i fill in for " The quick brown fox jumps over the lazy dog " if i want to filter 'brown' & 'dog' ?

thanks

Sheldon
You can use

You can use

^(?:(?.*brown.*dog.*).)*$

Sheldon
This should work as well.

This should work as well.

^(?:(?brown.*dog).)*$

supa
the above wildcards

the above wildcards combination still don't work.

any others?

thanks

Sheldon
Did you assign the filter as

Did you assign the filter as a regular expression?

Sheldon
This will work

This will work

.*brown.*dog.*

You need to set "Regular expression"

Sheldon
You want to find text that

You want to find text that contains "brown" and "dog" in this order, right?
The last expression will find
" The quick brown fox jumps over the lazy dog " and other texts like this that contain first "brown" and after that "dog".

Dan Bollinger
Where do I set "regular

Where do I set "regular expression?" I don't see it in the News Filters popup screen.

Sheldon
Go to Tools -> New filters ..

Go to Tools -> New filters ...
Add a new filter or edit an existing one.
In the second combo box (default value: "contains") you find "regular expression" (last entry).

Dan Bollinger
Thanks!  

Thanks!  What is the expression's format? It doesn't seem to be Boolean. SQL? 

Sheldon
A regular expression ist a

A regular expression ist a string evaluated as a boolean.

Example: ^start

You get true if the matching string begins with "start".

Dan Bollinger
OK, Here's the answer to my

OK, Here's the answer to my question. It is written in Regex.  http://en.wikipedia.org/wiki/Regular_expression

Funcy-dcm
(No subject)

yes

Sheldon
In the feeds.db the regex is

In the feeds.db the regex is a varchar. To use it in SQL use REGEXP. The evaluation returns a bollean.

xuzo
How could I use regular

How could I use regular expression for this simple filter:

example1 or example2
example1 and example2
example2 and example1

Thanks

Sheldon
Hi,

Hi,

the pattern depends a bit on what you try to achieve but the main approaches are:

For example1 or example2:
(?:example1|example2)

For example1 and example2:
(?=example1)(?=example2)

For example2 and example1:
(?=example2)(?=example1)

Kind regards,

Sheldon