[Rails] Regular expressions Multiple matches in the same line

2012-04-23 Thread Loren
r". I could solve the problem without using regexes but I would like to know how to solve it with regex. I hope I was clear enough in describing the problem. I am new to programming, and ruby is my first language. Kind Regards, Loren -- You received this message because you are sub

[Rails] Re: Please can some one show me how to stop getting emails from l...@ruby-forum.com

2012-04-23 Thread Loren
Well, sorry but I would appreciate if you would post your own question instead of highjacking mine. On Apr 23, 4:31 pm, Billy Alcazar wrote: > Please can some one show me how to stop getting emails from > l...@ruby-forum.com > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this me

[Rails] Multiple regex match in the same line

2012-04-23 Thread Loren
r". I could solve the problem without using regexes but I would like to know how to solve it with regex. I hope I was clear enough in describing the problem. I am new to programming, and ruby is my first language. Kind Regards, Loren -- You received this message because you are sub

[Rails] Multiple regex match in the same line

2012-04-23 Thread Loren
st_string.grep/shot/ > # From Ruby 1.9 String are not enumerable therfore it would give # a "no method error". I could solve the problem without using regexes but I would like to know how to solve it with regex. I hope I was clear enough in

[Rails] What can I use instead of (.grep)?

2012-04-19 Thread Loren
Hi, I am new to ruby and to programming in general. I am learning from an outdated book and just realized that the .grip method can no longer be used on strings since ruby 1.9. My question is could you please recommend an alternative method that I could use instead of grep and works on strings?

[Rails] What do I need to write a small game in ruby?

2012-03-08 Thread Loren
e good too. Thanks in advance for everyone who taken the time to answer this, Kind Regards, Loren -- 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@googlegroups.com. To u

[Rails] Could Someone please explain how to repeate my code recursivly?

2012-01-19 Thread Loren
Hi, I am new to programming and following Chris Pines book. There is an exercise in the book to write a method similar to .sort that will arrange an array of string in alphabetical order. I will paste the exercise: OK. So we want to sort an array of words, and we know how to find out which of two

[Rails] Re: Ruby programming problem

2012-01-11 Thread Loren
Thank you. I will take a look at it. On Jan 11, 3:04 pm, Colin Law wrote: > On 11 January 2012 11:07, Ahmy Yulrizka wrote: > > > > > > > > > > > > > Ahmy Yulrizka > > > On Wed, Jan 11, 2012 at 1:43 AM, Loren wrote: > > >> ..

[Rails] Ruby programming problem

2012-01-11 Thread Loren
I just started to teach myself ruby as a first language from Chris Pines's book. There is a exercise to write a program that will translate arabic numbers to old style roman numbers. I have completed the exercise and my code is works but only if I type in numbers that are not divisible by 5. As soo