At 10:14 PM 9/12/2005, [EMAIL PROTECTED] wrote:
hi I used this...

if $ie.contains_text("/25") then puts $& end

but it returns nil. don't know why. I'm assuming it will return /25 or rather the whole text.

You have to use a regular expression:

  $ie.contains_text(/\/25/); puts $&

(You have to back-quote the slash.)

_____________________
 Bret Pettichord
 www.pettichord.com

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

Reply via email to