From: Phil Cooperking Date: 2006-12-26T04:03:55+09:00 Subject: Re: Searching Stings with Arrays? Tom Werner wrote: > Phil Cooperking wrote: >> >> > This might get you started off on the right path: > > m, agent = *@string.match(/(shiira|msie|safari|firefox|netscape)/) > p agent > > outputs > > safari > > If you need further clarification of this code, just let me know. > > Tom Werner can I tag a regex on to this to pull the version of the browser? I understand I might have to to break this down as some useragents are differently setup. -- Posted via http://www.ruby-forum.com/.