Redact text from a url path using code

Does anyone know how to redact text with code please?
I have this path which I got from the url, but I would like to be able to remove the first part (until the comma)…
‘event-details,no-pay-no-way-by-dario-fo-2023-10-29-19-00’

Can someone help please? The first part (event-details,) needs to be deleted using code, so I can use the last part to filter a dataset.

Thanks

Look at JavaScript String Methods, substring() and indexOf() in the other chapter.

1 Like