[Wtr-general] Need to fetch the ID
Željko Filipin
zeljko.filipin at gmail.com
Tue Jun 12 05:39:49 EDT 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070612/272982fc/attachment-0001.html
More information about the Wtr-general
mailing list