Page 1 of 1

Can I search for a filename and not include the extension?

Posted: 22 Oct 2014 23:00
by kodyman
Using Quick Search or Info Panel Search is there a way to not include the file extension in the search results? Only search in the base filename?

Here’s my example:
I set up a folder for forum posts I may want to refer to later. Bookmarks. All I do is copy or drag/drop the post link to the folder. Double click on it later and bang, I’m there in the forum.
Here is a sample of a few I’ve saved from this forum.

Administrator mode required but not asked.URL
Better file folder selector.URL
can i get folder Contents in a drop list.URL
Clean Recent Menu.URL
Comments (or similar) as hyperlinks.URL
Copy URL to a Folder.URL
Documenting Undocumented (sort of).URL
Dragging tofrom Explorer in Windows 7.URL
Elevating XYplorer.URL

If I search for Administrator, XYplorer, Menu or any of the other words in the list I get my results.
But if I search in that list for URL to get “Copy URL to a Folder” I get all of the files in the result since all end with .URL.

I’ve looked in the manual, help file and searched the forum but don’t seem to find anything for excluding the extension in the results.
Did I miss it?

Thanks,

Re: Can I search for a filename and not include the extensio

Posted: 22 Oct 2014 23:28
by highend
E.g. via the info panel search:

Code: Select all

>url.*(?=\.url$)

Re: Can I search for a filename and not include the extensio

Posted: 23 Oct 2014 00:27
by kodyman
highend wrote:E.g. via the info panel search:

Code: Select all

>url.*(?=\.url)
Thanks highend. This works in the info panel or F3 quick search.
I was wondering though, whether there was a more universal way to ignore extensions when searching. For instance if the base filename link name contained jpg, png, xls etc. Instead of changing the code each time to reflect the extension to ignore, just ignore extensions in general.

Re: Can I search for a filename and not include the extensio

Posted: 23 Oct 2014 01:15
by highend
Not that I know of ;(

A minimal more flexible pattern:

Code: Select all

>url.*(?=\.(url|xml)$)
This would search for url in all files that end with url, xml...

If you want to add additional ones, just add a |<extension> to it.

Re: Can I search for a filename and not include the extensio

Posted: 23 Oct 2014 04:21
by FluxTorpedoe
Hi,

I may have misunderstood the request, but wouldn't this be enough?

Code: Select all

*url*.*
Or if there's a need for regex

Code: Select all

>url.*\.