求助:用正则表达式实现“多关键字查找”及“反向比对”!
syhb 2005-06-26 01:53:53 1、
某N条字符串
a="hello,word. this is a test string.";
b="hello boy,i like you.";
n="...";
查询方法:hello like(与google,yahoo多关键字功能相同)
查询结果为B。
(使用符号 "|"即 hello|like查询两条都能找到,这不是我想要的。)
2、
a="hello,word. this is a test string.";
b="hello boy,i love you.";
c="boy,i like you.";
如何查找 不包含hello和love的字符串而找出C结果呢。
各位,在下谢过了。