Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. "A B".replace(new RegExp(String.fromCharCode(160),"g"),"xxx");
  2. "A B".replace($('<b>&nbsp;</b>').text(), 'xxx');
  3. "A B".replace(/xA0/,'xxx');
  4. "A B".replace(/\xA0/,'xxx');
  5. "A B".replace(/u00A0/,'xxx');
  6. "A B".replace(/\u00A0/,'xxx');
  7.  
  8. .replace(/[u202Fu00A0]/, "...")
  9.  
  10. .replace(/[u202Fu00A0u2000u2001u2003]/, "...")
Add Comment
Please, Sign In to add comment