I am trying to match lines in a file that contain only a single /
so my thought is i can search for a string of any length that doesn't contain a /
and then match exactly one /
and then match another string of any length not containing a /
and finally ending with a line break.
My attempt at this was [^/]*/[^/]*$
. however this doesn't seem to work.
I went ahead and tried matching just parts of this pattern and started by just trying to match strings of any length not containing a /
which I would think should be just [^/]*
but this isn't working.
I am pretty familiar with regex but not as familiar with using it in vim so firstly, am I putting in my regex wrong for using vim? and secondly, if my input for vim is correct, then what is wrong with my regex?