2009/5/27 Ruby One
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
>
> hi all,
>
>
>
> i have a string need to replace every 10th blank space of the string
> with some special character.is it possible, the string does not have any
> "\n", one single line.
>
> suppose this is the string "i have a string need to replace every 10th
> blank space of the string with some special character.is it possible,
> the string does not have any "\n", one single line." need to
place @ in
> place of every 10 blank space.
>
What have you tried in order to achieve this?
You may not end up with the most elegant solution yourself but surely any
programmer can work out some way of achieving this.
Post your efforts and there may be some help.
Colin
>
>
> thanks and regards
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---