Ruby match first occurrence of string for a gsub replacement?

Use sub, not gsub. Gsub is global, sub isn't.

Thank you! I'm...just getting started with RoR, and the language/framework is still a little uncomfortable...I'm a C#/JS guy. – ar3 Jul 21 at 20:25 1 At least you've seen the light :D – mikhailvs Jul 21 at 20:39.

Use sub, not gsub. Gsub is global, sub isn't. Terms of service.

Not the answer you're looking for?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions