How can i match a string that does not finish with / . I know I can do that /\\/$/ and it will match if string does finish with /, but
/
/\\/$/
[^\/]$
^ will negate any character class expression.
^