Hey guys,
I think this will just be a quick one but I can't figure it out. What I'd like to do is pretty simple:
I want to take a string, find if has a substring of the format "character-character" and then replace it with "character - character". So I figured I'd need to use StringRegExpReplace. Here's what I have so far:
$string = "first-second"
$string = StringRegExpReplace($string, "[^\s]-[^\s]"," - ")
and this gives me, unsurprisingly, "firs - econd" and I know why it does th