4 ms·
> "([A-Z][a-z]+){7,} lang:java Yeah this one was my favorite of the code search examples, there are some really good ones in there.
by wetmore 11y ago
> "([A-Z][a-z]+){7,} lang:java
Yeah this one was my favorite of the code search examples, there are some really good ones in there.
- cag_ii 11y agoCan you explain this? It looks to me like a regexp that searches Java source for words 7+ characters that start with a capital letter?
- yongjik 11y agoIt searches for CamelCase identifiers that are made of seven or more "terms", where each term is a capital letter followed by one or more lowercase letters. E.g., ProjectPotatoLoginPageBuilderFactoryObserver. (Disclaimer: I just made it up. Not an actual Google project name.) "lang: java" is not a part of regexp; just a Google code search extension that searches for Java.
- robryk 11y agoThis searches for camelcase identifiers with at least 7 words.