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 NO
my
/^(?!my).*/
(?!expression) is a negative lookahead; it matches a position where expression doesn't match starting at that position.
(?!expression)
expression