Test, validate and match regular expressions
This regex matches chess moves in algebraic notation, covering piece moves, captures, pawn moves, en passant, promotion, check/mate symbols, and castling (both kingside and queenside). It is useful for parsing or validating chess game notation in PGN or similar formats.