Chris Hulan
5/15/2006 3:00:00 PM
try changing the 'matches' line to:
if /baidu/.matches(al[i])
I believe the ',*' are unnecessary. You may want to add the flag to
ignore case on the RegExp match.
FYI
Your code uses the STRING#matches defined by WAITR, which is
implemented as '==' (acording to the API RDocs) which is an exact
match. WAITR implments the RegExp*matches as a call to RegExp#match
which will return the match if found, or nil if not found.
Cheers