vim regex matching with Uppercase letters but NOT underscore

In vim regex syntax, I am trying to match with all words with starting uppercase, and not starting underscore


This is the what i have untill now.

I want something like this:


Where [A-Z^_] denotes that it should match with all uppercase chars, but not underscore.

Any help would be greatly apreciated. Thanks in advance.

Edit: My question was woorded poorly. I want the first set to match with an uppercase char, which does not have an underscore in front of it. Sorry.

Source: regex

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.