I thought this might work: ^['\s+', '-', "This should be connected"\w\s]{1,}$
But something is wrong with it. Does anyone no of a regex that will place dashes between words while at the same time not placing dashes in front of the very first word or behind the very last word?
I also need to keep in mind that I don't want a dash before the first word or after the last word. And, sometimes I will only have one word so no dashes are required.