# Regex-based Paired Folders

**URL:** https://resource.dopus.com/t/regex-based-paired-folders/46551
**Category:** Tutorials
**Created:** [October 21, 2023, 4:05pm UTC](https://resource.dopus.com/t/regex-based-paired-folders/46551 "2023-10-21T16:05:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)
#### Post date: [October 21, 2023, 4:05pm UTC](https://resource.dopus.com/t/regex-based-paired-folders/46551/1 "2023-10-21T16:05:23Z")

</div>

As backup and for standalone tests of various versions, setups, scripts, etc., I keep a collection of Opus installations on a USB drive.

![image](https://resource.dopus.com/uploads/default/original/3X/1/4/1439c95844a6771dc06e982a42b3dfa407b59922.png)

To quickly have access to the master setup on my system disk, I set up **Paired Folders** with a regex match and replace.

All USB installations sit in the root of the drive in folders starting with either `v12.` or `v13.`.

 ![image](https://resource.dopus.com/uploads/default/original/3X/e/d/ed571e50efb738345fcae141769122648811ed3f.png)

The paired folder condition is met when I travel into the `DOPUS` folder.

 ![image](https://resource.dopus.com/uploads/default/original/3X/b/4/b4a4754e9a351cf23c2a2696b4a222b50a469f8f.png)

> **Regex**
>
> ```plaintext
> .:\\v(12|13)\.[^\\]+\\DOPUS(.*)
> 
> ```
> 
> ```plaintext
> /dopusdata\2
> 
> ```

* * *

To open the corresponding folder of my active Opus installation, I can use

- a command like

```plaintext
@nodeselect
Go PATH={sourcepath|pair} NEWTAB=findexisting OPENINDUAL

```

- or tap F6 once or twice to get into single mode and back to dual

- or let a [script](https://resource.dopus.com/t/autoopenpairedfolder-add-in/46353) do it for me automatically.
