我想写一个正则表达式来匹配句子中包含“商业智能”这个词的情况。然而,如果句子中包含“商业智能和分析”字样,我不希望返回匹配项。
我试着用
/Business Intelligence (?<! and Analytics)/
发布于 2014-04-08 19:43:48
您应该使用负面展望:
/Business Intelligence(?! and Analytics)/
^ I have removed the < from here
https://stackoverflow.com/questions/22946681
复制相似问题