Regular expression.?

Get API New post offices in a particular city.
Vdden No. 2: vul. Chigirinska, 11/1
Vdden No. 3 (up to 30 kg per odne the meeting place): bulv. Shevchenko, 150 
Vdden No. 4 (to 30 kg): vul. Gagarina, 77
Vdden No. 5 (up to 30 kg per odne the meeting place): vul. Galvi Vyacheslav (Russian Academy of Sciences. Rudna), 45
Vdden No. 6 (up to 30 kg per odne the meeting place): vul. Volkova, 30
Vdden No. 7 (up to 30 kg per odne the meeting place): vul. Sumgait, 33
Vdden No. 8 (to 30 kg): vul. Blagovna, 379
Vdden No. 9 (up to 30 kg): vul. Ostafa Dashkevich, 34
Vdden No. 10 (up to 30 kg per odne the meeting place): vul. Odeska, 8
Vdden No. 11 (up to 30 kg): vul. Nebesna Sun (Russian Academy of Sciences. Lenina), 6
Vdden No. 12 (up to 30 kg per odne the meeting place): vul. Molotkova, 20
Vdden No. 13 (15 kg), Mini-vdden: vul. Port (Russian Academy of Sciences.Staln ger), 34 (Mall Dnipro Plaza)
Vdden No. 15 (up to 30 kg per odne the meeting place): vul. O. Dashkevich, 20
Vdden No. 23 (up to 30 kg per odne the meeting place): vul. Smelyanska, 163
Vdden No. 24 (15 kg), Mini-vdden: vul. Shevchenka, 352 (MAG."Brain")
Postomat "Privat" No. 1001: vul. Geroyiv Stalingradu, 38
Postomat "Privat" No. 1002: vul. Gagarina, 47
Postomat "Privat" No. 1003: bulv. Shevchenko, 241 (A-Bank)
Postomat "Privat" No. 1004: bulv. Shevchenko, 150
Postomat "Privat" No. 1005: vul. V. Chornovola, 122/41
Postomat "Privat" No. 1006: vul. Sumgait, 24
Postomat "Privat" No. 1007: bul. Shevchenko, 305
Postomat "Privat" No. 1008: vul. Vernigora, 12
Postomat "Privat" No. 1009: vul. Radwan, 43
Postomat "Privat" No. 1010: vul. Unversites, 33
Postomat "Privat" No. 1011: vul. Baidi Vishneveckogo, 40
Postomat "Privat" No. 1012: vul. Nebesna Sun, 28
Postomat "Privat" No. 1013: vul. Gogol, 250
Postomat "Privat" No. 1015: vul. Tarasova, 22
Postomat "Privat" No. 1016: vul. Smelyanska, 36
Postomat "Privat" No. 1017: vul. Gromov, 34/4
Postomat "Privat" No. 1018: vul. V yacheslav hall, 164
Postomat "Privat" No. 1020: vul. Khreschatyk, 190
Postomat "Privat" No. 1021: vul. Smirnova, 6
Postomat "Privat" No. 1022: vul. Parisko Asiago, 37
Postomat "Privat" No. 1023: vul. 30-richchya Peremogi, 22
Postomat "Privat" No. 1024: bul. Shevchenko, 320
Postomat "Privat" No. 1025: vul. Dobrovolsky, 20

Bring in the dropdown list
<select id="secession_NP">
 <option value="v0">Select the warehouse for New Mail</option>
/ / ....... here all this apendics
</select>

Accordingly, the need to zacatechichi that seselectin user. So I'm writing the regular season
option.value=('v'+/.* №([0-9]{0,5}).*/.exec(res.data[i].Description)[1]);

But look there
(Postomat "Privat") and there are (Vdden No.)
I want to assign value in case if it is
(Postomat "PrivatBank") => pb-the branch number
(Vdden n) => np-number of office
June 5th 19 at 22:01
2 answers
June 5th 19 at 22:03
Solution
June 5th 19 at 22:05
if (secession_NP.value.includes (a'Postomat')) {
 foo = /n(\d+)/.exec(secession_NP.value)[1]
}

Find more questions by tags JavaScriptRegular expressions