how to remove letter with blank space in regex code example Example: regex to remove spaces //.. return str.replace(/\s/g, ''); //..