For PMD, I would like to have a rule that warns me of these ugly variables that start with mine. This means that I must accept all variables that DO NOT start with mine.
So, I need RegEx (re), which behaves as follows:
re.match('myVar') == false re.match('manager') == true re.match('thisIsMyVar') == true re.match('myOtherVar') == false re.match('stuff') == true
I tried different ones (I list them here later, sorry, now they do not have access), but it does not work yet.
regex regex-negation pmd
Dominik Sandjaja Jan 22 '10 at 9:44 2010-01-22 09:44
source share