KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to replace all occurrences of white space characters (space, tab, newline) in JavaScript. How to do so? I tried: str.replace(/ /gi, "X")
Tags (comma-separated)
Save Edits
Cancel