Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //you should replace ä with any non-usable character.
- test = `
- ä
- .
- heloo
- ä
- `.replace(/(\s{4})/, "START")
- .replace(".", "DISPLAY")
- .replace(/(\s{2})/, "STOP")
- .replace(/ä/g, "")
- alert(test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement