# Filename syntax in search rules

**URL:** <https://discourse.devontechnologies.com/t/filename-syntax-in-search-rules/72317>\
**Category:** Tips\
**Created:** [August 13, 2022, 6:38pm UTC](https://discourse.devontechnologies.com/t/filename-syntax-in-search-rules/72317 "2022-08-13T18:38:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [August 13, 2022, 7:02pm UTC](https://discourse.devontechnologies.com/t/filename-syntax-in-search-rules/72317/3 "2022-08-13T19:02:45Z")

</div>

> [@beausoleil](#):
>
> How can I search for “\_1” as the end part of the file and extend it to all files, without having to enter a line for each extension that determines the file type.

This query `name:~_1.` is not 100% what you’re looking for but it shoud be ok in most cases. You could use this query with [Script: Create or change smart group(s)](https://discourse.devontechnologies.com/t/script-create-or-change-smart-group-s/56556).

---

_[View the full topic](https://discourse.devontechnologies.com/t/filename-syntax-in-search-rules/72317)._
