uses StrUtils
用定义空格的方法来确定单词;(AnsiContainsText(yourLine, ' '))
处理单词:
if Not AnsiContainsText(yourWord, 'AR') and
if Not AnsiContainsText(yourWord, 'EA') and
if Not AnsiContainsText(yourWord, 'CA') and
if Not AnsiContainsText(yourWord, 'CAD') then
if AnsiContainsText(yourWord, 'A') then
showmessage('找到!');
不过这个想法好像有点笨;