Regex find a string group inside of the console output
| 34 | namespace { |
| 35 | //! Regex find a string group inside of the console output |
| 36 | QString FindInConsole(const QString& output, const QString& pattern) |
| 37 | { |
| 38 | const QRegularExpression re(pattern); |
| 39 | return re.match(output).captured(1); |
| 40 | } |
| 41 | |
| 42 | //! Call getblockchaininfo RPC and check first field of JSON output. |
| 43 | void TestRpcCommand(RPCConsole* console) |