Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: vdradmin: how to discard some movie?
On Fri, Aug 15, 2003 at 10:52:31AM +0200, Gregoire Favre wrote:
> On Fri, Aug 15, 2003 at 10:38:36AM +0200, Thomas Koch wrote:
>
> > I don't know exactly what you mean but it's possible to use Regular
> > Expressions in the search field. Maybe this is a solution for your
> > problem.
>
> Great ;-)
>
> Could you give me an example for let say serching
> all containing skate-board but not simpson?
^(?!.*simpson.*).*skate-board.*$
(?!pattern)
is called a "zero-width negative look-ahead assertion."
You write the thing you NOT want before the thing you want.
To make sure that nothing "escapes" you have to use the anchors.
^.*<pattern>.*$
Otherwise a Title:
Simposon skate-board
would match. a "skate-board simpson" wouldn't match even without the anchors.
(Yes, Regular Expression can sometimes be a bit like a woman, unpredictable <g>)
Bis denn
--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index