Re: Accessing elements from array returned by split() function

2012-03-01 Thread Roberto Congiu
a bunch, Phil. > > > Date: Thu, 1 Mar 2012 21:22:27 + > > Subject: Re: Accessing elements from array returned by split() function > > From: philip.j.trom...@gmail.com > > To: user@hive.apache.org > > > > > I guess that split(...)[1] is giving you what&#

RE: Accessing elements from array returned by split() function

2012-03-01 Thread Saurabh S
Of course, it works fine now. I feel like an idiot. And that problem using parse_url also went away and I can use that as well. Thanks a bunch, Phil. > Date: Thu, 1 Mar 2012 21:22:27 + > Subject: Re: Accessing elements from array returned by split() function > From: phil

Re: Accessing elements from array returned by split() function

2012-03-01 Thread Philip Tromans
I guess that split(...)[1] is giving you what's inbetween the 1st and 2nd '/' character, which is nothing. Try split(...)[2]. Phil. On 1 March 2012 21:19, Saurabh S wrote: > Hello, > > I have a set of URLs which I need to parse. For example, if the url is, > http://www.google.com/anything/goes/h