对于PMD,我希望有一条规则可以警告我以开头的丑陋变量my。
这意味着我必须接受所有不以开头的变量my。
因此,我需要一个表现如下的RegEx(re):
re.match('myVar')       == false
re.match('manager')     == true
re.match('thisIsMyVar') == true
re.match('myOtherVar')  == false
re.match('stuff')       == true
我尝试了不同的方法,但是还没有开始。