I have some HTML code stored in a variable:
var htmlString = ...
I want to remove all timestamps that are in this string, of the form (example): 2021-04-26 04:15:04.309
. Something like:
var htmlStringWithoutTimestamps = removeTimestamps(htmlString)
Hoy can I do this? Maybe with regex?