Skip to content

Programming is an art

Josh Software

Josh Software

  • Technologies
  • Industries
  • Career

Tag: squeeze

How to remove extra spaces in ruby strings

November 13, 2009April 16, 2010 by sandipransing, posted in Ruby

In ruby, one can write multiple codes to remove multiple blank spaces inside strings (sentenses) "Write      your       string            here   ".squeeze.strip"This     is my      input  string     ".gsub(/ +/, ' ')"Write      your       string       … Continue reading How to remove extra spaces in ruby strings

Tagged regex, squeezeLeave a comment

Categories

Android Artificial Intelligence CMS Conferences General Go Javascript Mobile Development MongoDB Radiant Ruby Ruby on Rails Search Search Engine Optimization Tutorials

Archives

Authors

Our Publications

Hands-on Microservices with Go and MongoDB
Hands-on Microservices with Go and MongoDB
Learning Mongoid - Gautam Rege
Learning Mongoid
Create a website or blog at WordPress.com