C:\Projects\Ensure_Solution\Assistance\App_WebReferences\Web_ERP_WebService\Web_ERP_Assistant
\\.+?(?!\\) // I know there is something with negative look -ahead `(?!\\)`
.+ - any character except newline
( - create a group
\\.+ - match a backslash, and any characters after it
) - end group
$ - this all has to happen at the end of the string
其中一个对我有效的方法是:
Try it online!
说明:
消极展望是正确的答案,但可以写得更清楚,如:
这将查找\的出现,然后在未匹配的检查中,查找任意数量的字符,后跟您不希望看到的字符。因为它是负数,所以只有在找不到匹配项时才匹配
您的消极前瞻解决方案如下:
看here on Regexr
相关问题 更多 >
编程相关推荐