I have this regular expression and i need to avoid all the consecutives spaces:
const regex = new RegExp(/^[a-zA-ZÀ-úñÑ\\s]+$/g);