更新时间:2022-01-07 21:47:06
您应该在正则表达式中添加定界符:
You should add the word delimiter to your regex:
\b(shoes|shirt|pants)\b
在代码中:
Regex.Match(content, @"\b(shoes|shirt|pants)\b");
用于正则表达式匹配的 xpath 表达式?
正则表达式:最小匹配或不匹配
匹配有效日期的正则表达式
匹配有效 IPv6 地址的正则表达式
正则表达式 - 我只想匹配正则表达式中的开始标签
Java 正则表达式不匹配
Python正则表达式不匹配
Grep不匹配正则表达式
Javascript正则表达式不匹配
javascript正则表达式不匹配单词