- Support named capture groups:
➜ nomino ".* S(?<season>\d+).E(?<episode>\d+).*" "S{season:2}E{episode:2}"
+-------------------------------+------------+
| Input | Output |
+-------------------------------+------------+
| Nomino (2020) S1.E1.1080p.mkv | S01E01.mkv |
| Nomino (2020) S1.E2.1080p.mkv | S01E02.mkv |
| Nomino (2020) S1.E3.1080p.mkv | S01E03.mkv |
| Nomino (2020) S1.E4.1080p.mkv | S01E04.mkv |
| Nomino (2020) S1.E5.1080p.mkv | S01E05.mkv |
+-------------------------------+------------+
?<season>
and ?<episode>
are named capture groups. S{season:2}E{episode:2}
is equivalent to S{:2}E{:2}
or S{1:2}E{2:2}
.