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".
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).
You can use
^(?:(?.*brown.*dog.*).)*$
This should work as well.
^(?:(?brown.*dog).)*$
the above wildcards combination still don't work.
any others?
thanks
Did you assign the filter as a regular expression?
This will work
.*brown.*dog.*
You need to set "Regular expression"
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".
Where do I set "regular expression?" I don't see it in the News Filters popup screen.
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).
Thanks! What is the expression's format? It doesn't seem to be Boolean. SQL?
A regular expression ist a string evaluated as a boolean.
Example: ^start
You get true if the matching string begins with "start".
OK, Here's the answer to my question. It is written in Regex. http://en.wikipedia.org/wiki/Regular_expression
In the feeds.db the regex is a varchar. To use it in SQL use REGEXP. The evaluation returns a bollean.
How could I use regular expression for this simple filter:
example1 or example2
example1 and example2
example2 and example1
Thanks
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