I want to build regex expression in VS Code which returns all the phrases in the whole solution which contain a given string(please keep in mind that it can contain special characters) and not ends with given string e.g.
Contains /webhelp
but not ends with /
Matches:
/server/webhelp
blah/webhelp#
Doesn’t match
/server/webhelp/
server#webhelp/
Im not an expert in Regex, I’ve tried to build something like:
(?=/webhelp)(?=.*(?<!/)$)
But it doesn’t work.