I am writing some regex in Javascript. Now I am trying to match a (single colon) or a (space followed by a hyphen). I know if it was just a colon or a hyphen, I could do [:-]
. But I'm not sure how to match either (the colon) or (space followed by hyphen).
Trying to match (a single colon) or (a space followed by a hyphen)