.searchと.match
"http://ABCDE.com/".search(/^http:\/\/[0-9a-z]*.?ABCDE\.com/i);
searchは検索位置を返します。ない場合は-1
"http://ABCDE.com/".match(/^http:\/\/[0-9a-z]*.?ABCDE\.com/i);
matchは一致した文字列を返します。ない場合はnullです
"<th>aisdiuauaa</th>".match(/<th>(.*)<\/th>/i); //["<th>aisdiuauaa</th>", "aisdiuauaa"]