Non Breaking Space Character
"\u00A0".strip
"\u00A0".strip.empty?
"\u00A0".gsub(/[[:space:]]+/, "")
http://en.wikipedia.org/wiki/Regular_expression#Character_classes for reference to [:space:]
Written by Nishant Modak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#