Updating regex in console to work with defines preceded by tabs.

Closes #681.