do one thing if you know ruby somewhat



puts url_splitted[0] should give you the base url

On Fri, May 1, 2009 at 5:00 PM, ash <> wrote:
> Having searched this group, plus the wiki, plus the mail archives I am
> still a little confused as to the syntax format for stripping text
> from a url.  Apologies if there is a thread covering this already but
> I am now getting frustrated with this as it seems such a simple task
> but I can't get my head round it.
> I have a check in a test to ensure that the url reached is correct but
> there is a variable at the end of the url that I don't need.  How do I
> get rid of this?
> My url is of the format
> So far I have discovered that the following will possibly help;
> new_url = ie.url[/(.*)\//] although this strips everything after
> "uk/".  I just need to strip out "?variable".
> My question is really; What does this mean? [/(.*)\//]
> Cheers...Ash
> >


Alkarim Rayani

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to