Thanks Alan!  That works better than what I was trying to do.  Now I can
create the new URL with a line like:

new_url = ie.url[/(.*)\//] + "new_page.html"

Sweet!  I was trying expressions like =~ /\&\// but wasn't having any luck.

Cheers!  Paul C.


On 11/01/07, Alan Ark <[EMAIL PROTECTED]> wrote:

 Hi Paul.

The following should work:

irb(main):001:0> web_url = 'http://foo/bar.html'

=> "http://foo/bar.html";

irb(main):002:0> web_url=~/(.*)\//

=> 0

irb(main):003:0> p $1

"http://foo";

nil

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to