diff options
| author | Mario Lang <mlang@delysid.org> | 2004-02-05 22:08:45 +0000 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2004-02-05 22:08:45 +0000 |
| commit | 302dcbe529e9a71b8fc1f0bb2a398af6642ff1e8 (patch) | |
| tree | fb1237e49bff851050961a0fef724e55e95592ef | |
| parent | c5630a5b551392d7189c00b2060a018c3b876c7f (diff) | |
(chess-fen-regexp): New constant.
| -rw-r--r-- | chess-fen.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-fen.el b/chess-fen.el index f7cb84b..8117afb 100644 --- a/chess-fen.el +++ b/chess-fen.el @@ -37,6 +37,9 @@ ;; relate to the game, not the position. ;; +(defconst chess-fen-regexp + "^\\([bnrqkpBNRQKP1-8]*/?\\)+ [bw] \\(-\\|[KQkq]+\\) \\(-\\|[1-8]\\)") + (defun chess-fen-to-pos (fen) "Convert a FEN-like notation string to a chess position." (assert (stringp fen)) |
