1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Find files but ignore file extension in search

Discussion in 'Support' started by glennw, Nov 30, 2011.

  1. glennw

    Joined:
    Dec 18, 2008
    Messages:
    4
    Likes Received:
    0
    This might be real simple.

    I want to find all files that have a specific string to the left of the extension and not include the extension as part of the wildcard search.

    For example:

    For my *doc* search,

    return:

    doctor.doc
    builddock.txt
    docktime.doc
    doc

    but don't return:
    badfile.doc
    anyfile.doc

    In other words, if *doc* is the extension don't show me the file unless *doc* is also part of the file name.
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    From: glennw
    Subject: [Support-t-3406] Find files but ignore file extension in search

    | This might be real simple.
    |
    | I want to find all files that have a specific string to the left of
    | the extension and not include the extension as part of the wildcard
    | search.
    |
    | For example:
    |
    | For my *doc* search,
    |
    | return:
    |
    | doctor.doc
    | builddock.txt
    | docktime.doc
    | doc
    |
    | but don't return:
    | badfile.doc
    | anyfile.doc
    |
    | In other words, if *doc* is the extension don't show me the file
    | unless *doc* is also part of the file name.

    AFAIK this ought to do it: *doc*.* - BUT it does not, it also reports all files with the .DOC extension. Why it ignores the presence of the explicit dot "." to separate name from extension I do not recall. However, this apparently does: *doc*[.]* - the brackets around the dot make it a required character [even if only implied].
    --
    HTH, Steve
     
  3. glennw

    Joined:
    Dec 18, 2008
    Messages:
    4
    Likes Received:
    0
    Excellent, thanks.

    Glenn
     

Share This Page