Relative newcomer to Javascript and looking for a way to remove the last character of a string if it is a colon.
I know myString = myString.replace(\'/^\\\\:/\');<
myString = myString.replace(\'/^\\\\:/\');<
$ needs to be at the end of the regex to match EOL.
$
/:$/