Hi -

I would like to use gsub() to strip decimals with trailing zeros from
a string.  My string looks like this:
--
19.0 " / 482.600 mm
--

I would like to end up with this:
--
19 " / 482.6 mm
--

Anyone have a regular expression that can do this?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to