I have a little problem with this url.
I want to get only the numbers on the first drop down and send it like as paramater on API.
I create a object with properties:
const dataAPI = { nameStation: '', nameStationNumber: '', dateStation: '', dataHours: '' }
and I want dataAPI.nameStationNumber to save only a number of clicked value.
With this code I get only this string for example:
Chepelarska - 18694 - HPoint-Water level
dataAPI.nameStation = e.target.innerHTML.replace(/.*\+\s?/, '');
How can I cut only 18694
from река Чепеларска - гр. Асеновград + Chepinska - 10084 - HPoint-Water level
Can I get example how to do that ?