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,
Can I search for a filename and not include the extension?
-
kodyman
- Posts: 222
- Joined: 09 Apr 2011 04:05
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Can I search for a filename and not include the extensio
E.g. via the info panel search:
Code: Select all
>url.*(?=\.url$)One of my scripts helped you out? Please donate via Paypal
-
kodyman
- Posts: 222
- Joined: 09 Apr 2011 04:05
Re: Can I search for a filename and not include the extensio
Thanks highend. This works in the info panel or F3 quick search.highend wrote:E.g. via the info panel search:
Code: Select all
>url.*(?=\.url)
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.
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Can I search for a filename and not include the extensio
Not that I know of ;(
A minimal more flexible pattern:
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.
A minimal more flexible pattern:
Code: Select all
>url.*(?=\.(url|xml)$)If you want to add additional ones, just add a |<extension> to it.
One of my scripts helped you out? Please donate via Paypal
-
FluxTorpedoe
- Posts: 906
- Joined: 05 Oct 2011 13:15
Re: Can I search for a filename and not include the extensio
Hi,
I may have misunderstood the request, but wouldn't this be enough?
Or if there's a need for regex
I may have misunderstood the request, but wouldn't this be enough?
Code: Select all
*url*.*Code: Select all
>url.*\.• Scripts: Session Manager
| SlideShow | Collection Manager | Power Launcher | Akelpad syntax highlighting | ...
XYplorer Beta Club