extractReiseauskunftDbStationCodeFromUrl
Script
v5
Fork
1
2
3
4
5
export
function
extractReiseauskunftDbStationCodeFromUrl
(
url
)
{
const
inputValue
=
url
?.
split
(
"input="
)
?.
[
1
]
?.
split
(
"&"
)
?.
[
0
]
;
const
words
=
inputValue
?.
split
(
"%"
)
;
return
words
?.
[
words
.
length
-
1
]
;
}