Javascript – Regular expression to split the string after every word
written this string to match all the test strings at once. String="AQuickBrown_fox jump over the-lazy-Dog"; Basically I want to make these string look like this: "a-quick-brown-fox-jump-over-the-lazy-dog" I tried split("/regex/") function on string and applied join("-") function on the returned array…