message: qt, test: introduce FindInConsole function
  Allows for regex searching into the console output.
diff: #include <QAction>
  #include <QLineEdit>
  +#include <QRegularExpression>
  #include <QScopedPointer>
  #include <QSignalSpy>
  #include <QTest>
  #include <QtTest/QtTestGui>
  namespace {
  +//! Regex find a string group inside of the console output
  +QString FindInConsole(const QString& output, const QString& pattern)
  +{
  + const QRegularExpression re(pattern);
  + return re.match(output).captured(1);
  +}
  +
  //! Call getblockchaininfo RPC and check first field of JSON output.
  void TestRpcCommand(RPCConsole* console)
  {
  