Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我首先想知道是否可以包含包含非字母数字字符的关键字?喜欢@help或+test
@help
+test
其次,是否可以在关键字中使用正则表达式或通配符?就像我想为@\w*
@\w*
非常感谢。
哇......一年多没有人回答这个问题?答案是肯定的……你可以。我不知道闪烁,但大多数正则表达式引擎允许您使用反斜杠来“转义”字符:
\@help \+test
我最近遇到了一个正则表达式引擎不允许转义所有特殊字符的情况。在这种情况下,您通常可以将字符括在方括号内:
[@]help [+]test
我祝你好运,但你可能已经弄清楚了这一点或在这一点上继续前进。