Hi Sapna, You should really read something about Regular Expressions. You can start here. http://www.rubycentral.com/book/tut_stdtypes.html There is chapter named Regular Expressions.
For now, try this (Bret left it in comment at my blog). (ie.link(:text, "RE: Check Copy Request").href =~ /id=(.*)&/)[1] Zeljko
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general