[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [Controversial Patch for Bug 18180] kfind sloppy match for simple search strings
From:       Kurt Granroth <granroth () kde ! org>
Date:       2002-07-19 21:39:52
[Download RAW message or body]

On Friday 19 July 2002 03:41 pm, Martin Konold wrote:
> > > > > > k?ind -> kfind.cpp is NOT FOUND
> > > > > > k?ind* -> kfind.cpp is FOUND
> > > >
> > > > I am not quite sure I understand: The syntax *is* command line
> > > > wildcards plus the special case that no wildcards specified is
> > > > interpreted as "*<searchstring>*" so that users not knowing about
> > > > wildcards have an easier
> > >
> > > At least the example says that k?find.cpp does not match kfind.cpp
> > > but k?find* does match. This example contradicts your explaination.
> >
> > No, he said that 'k?find' does not match 'kfind.cpp' (which is right).
>
> this is fine but he also said (look above!) that k?ind* does match
> 'kfind.cpp' which of course is inconsistent simply because
> anythingnonmatching* should never match.

Hmm.. well, I'm not going to lecture you on how regexps work since I know 
you know all about them.  I'll just say that you are having a "oops, how 
did I miss that" moment :-)

Quick hint: the ? wildcard matches any one letter.  So 'k?ind' would match 
'kfind', 'kbind', and 'kmind'.  Therefore, 'k?ind*' would match any of 
those with any extension (including 'kfind.cpp')
-- 
Kurt Granroth - "KDE -- Conquer Your Desktop"
KDE Developer/Evangelist | granroth@kde.org
http://www.granroth.org  | kurt@granroth.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic