Regular Expressions 101

Community Patterns

Get first move and depth from Stockfish output

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^info depth (\d*) seldepth (\d*) .* pv (....) (....).*$
/
gm

Description

Stockfish output contains longer form containing the square of departure.

Buggy with anything other than pawn.

Submitted by Stockcat - 2 years ago