J
John Black
How do I write a regex that will match on
string
but not
string_
I want it to match if it detects string followed by anything but an underscore including if
string is at the end of the line or if its followed by a space or whatever. Right now I'm
essentially doing two checks: matches string and does not match string_ but I am sure there
must be a more elegant way to do it? Thanks.
John Black
string
but not
string_
I want it to match if it detects string followed by anything but an underscore including if
string is at the end of the line or if its followed by a space or whatever. Right now I'm
essentially doing two checks: matches string and does not match string_ but I am sure there
must be a more elegant way to do it? Thanks.
John Black