in reply to Re^3: Regex to remove generic accounts
in thread Regex to remove generic accounts

(?!pattern) is a negative look-ahead.

Take a look at the sub-section Look-Around Assertions in the section on Extended Patterns in perlre.