Hello All, I wanted regular expression for the following patterns like
Nauzer Bharucha, TNN 10 September 2009, 12:01am IST IANS 3 September 2009, 02:57pm IST regular expression should return *date* in first group *author* in second group and *agency* in third group for below pattern it should return Nauzer Bharucha, TNN 10 September 2009, 12:01am IST $1 = 10 September 2009 $2 = Nauzer Bharucha $3 = TNN In second case author is nil Any ideas ? Sandip --~--~---------~--~----~------------~-------~--~----~ 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 unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---