[Rails] Re: Advanced string comparison using active record

2014-11-18 Thread Tal Sh
That wouldn't catch hellXXo... -- 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 unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Rails] Re: Advanced string comparison using active record

2014-11-18 Thread Vivek Sampara
Hey sorry for misunderstanding it. You will have to use native database specific regex or pure ruby based expressions and select im a bit bad at regular expressions but i should look something like this :) Post.all.select{|x| x.title ~= /[hello]*/ } On Tue, Nov 18, 2014 at 1:45 PM, Tal Sh

[Rails] Re: Advanced string comparison using active record

2014-11-18 Thread Tal Sh
Thanks, I'll try that. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Advanced string comparison using active record

2014-11-17 Thread Tal Sh
Thanks! But I might have no been clear, that the string I want to find is actually hello. The substrings are strings I want to *ignore* when searching.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk