Finding Direct ObjectManager Usage in Code (Magento 2)

In older extensions or inherited Magento code, you may find direct calls to the ObjectManager. A regular expression makes it easy to search for those calls throughout the codebase.

For example, the search may find:

The regular expression…