RegEx to find file names
- Sean O'Shea
- Aug 3, 2021
- 1 min read
You can use this regular expression search to find file names with a three character extension:
^[\w,\s-]+\.[A-Za-z]{3}$

Change the number indicated in curly brackets at the end to account for longer extensions.
^[\w,\s-]+\.[A-Za-z]{4}$