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.
我正在尝试寻找正则表达式语法以在“jd-ednl\a2bcdn44”中找到“a2bcd”
到目前为止,我已经尝试过 (a2bcd) 和 ^a2bcd.* 但似乎没有任何效果。任何帮助是极大的赞赏。
如果您使用 grep 或类似方法搜索字符串以查找匹配项,则a2bcd可以使用。否则,如果您需要匹配整个字符串,请尝试^.*a2bcd.*$.
a2bcd
^.*a2bcd.*$