# Finding

Once a scan is complete, TV Rename will identify files to move/copy/rename and additional files to download/create. For episodes that are still missing, TV Rename will try and find them for you.

### Types <a href="#types" id="types"></a>

There are 7 places it could search:

* *File System* – If found, it will remove the episode from the missing list and move the file into the correct place.
* *SABnzbd*, *uTorrent*, *qBittorrent* – If found it will mark it as downloading so you know not to try and find the item again. See [**The Torrents/NZB Tab**](https://tv-rename.gitbook.io/tv-rename/the-manual/preferences#the-torrents--nzb-tab) for more information.
* *RSS Feed for torrent links*, *JSON Web page for torrent links* – If found then it will download the torrent file. (via uTorrent or qBittorrent) See [**The RSS/JSON Search Tab**](https://tv-rename.gitbook.io/tv-rename/the-manual/preferences#the-rss--json-search-tab) for more information about configuration.
* *Jackett* - If you have a Jackett Server running TVR can ask it for download locations fo rmissing files. See [**Jackett**](https://tv-rename.gitbook.io/tv-rename/the-manual/preferences#the-automatic-export-tab) section of the settings for further information.

### Identification of files <a href="#how-to-write-a-regex-for-tv-rename" id="how-to-write-a-regex-for-tv-rename"></a>

#### How to write a Regex for TV Rename <a href="#how-to-write-a-regex-for-tv-rename" id="how-to-write-a-regex-for-tv-rename"></a>

Firstly, get acquainted with what a regular expression is - these sites will help:

* [**regexone.com**](https://regexone.com/)
* [**www.regular-expressions.info**](https://www.regular-expressions.info/)
* [**regexr.com**](https://regexr.com/)
* [**regex101.com**](https://regex101.com/)
* [**www.rexegg.com**](http://www.rexegg.com/regex-quickstart.html)

Once you understand Regular Expressions and [**‘Named Groups’**](https://www.regular-expressions.info/named.html) in particular then all you need to know is that TV Rename looks for 3 named groups:

* *S* – The number series the file relates to.
* *E* – The Episode number the file relates to.
* *F* – (optional) If specified and if it matches then this is the max episode number that the file matches. It is used for instances when a file matches multiple episodes.

For Example: ‘S01E01-03’ would indicate that the file represents Series 1 and is episodes 1-3. In this case S=1, E=1 and F=3.

#### Finding Rules <a href="#finding-rules" id="finding-rules"></a>

Note that if a file matches multiple missing files, or multiple files match one missing episode no action is taken. TV Rename will raise a warning in the log files and allow the user to manually link the file to the missing episode.

### Further Information <a href="#further-information-2" id="further-information-2"></a>

Further information can be found [**here**](https://www.tvrename.com/manual/options/#filename-processors) and [**here**](https://www.tvrename.com/manual/options/#the-%C2%B5torrent--nzb-tab).
