How do you search the Web Page Source in ruby Hard to explain, but heres a the code for doing it in Python
import urllib2, re
word = "How to ask"
source = urllib2.urlopen("http://stackoverflow.com").read()
if re.search(word,source):
print "Found it "+word