For PMD I'd like to have a rule which warns me of those ugly variables which start with my
.
This means I have to accept all variables which do NOT start with my
.
So, I need a 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've tried different ones but haven't got it working yet.