Using Regex to replace spaces with dash?

Hey all, I’m looking to to use RegexReplace to replace spaces with dashes in my text phrases. I’m a total beginner when it comes to js and expressions, so after as much research as I could muster thus far, I’ve come to this formula, but it’s obviously not working and I’m not sure how close I am to getting it right.

I know this is quite a pretty basic thing to do (once you’re experienced!), but any gurus out there that lend a helping hand? I would appreciate it!

This is the expression I’ve been using:

Thank you!

Hey there! This what you are looking for? You were close!


Yes omg I was close indeed! Thank you!