¿Cómo hacer coincidir y reemplazar el espacio en el contenido entre abrir "(-" y cerrar "-)" en javascript con guiones dobles "--"?
Ejemplo:
input: (-A room without books-) (-is like a body without a soul-) output: (-A--room--without--books-) (-is--like--a--body--without--a--soul-)ejemplo:
"-A room without books-".replace(/\040/g, "--")