Regex Tuesday Challenge - Week Twenty

Challenge number twenty is to match valid chess move notation using the algebraic notation (other challenges in the future will be for other notations), as explained by this article. You don't need to worry about the moves being valid, which is not possible in regex alone. Don't worry about analysis (!!, !, etc.)

To test a regular expression on the test cases below, type it into the text input. Each test case will be marked as passed or failed respectively - you are aiming to get as many test cases as you can to pass. Note that JavaScript must be enabled for this feature to work. The regex engine used is the JavaScript regex engine; it is similar to PCRE, but with a few differences.

Test cases (0/103)

e4
match
a8
match
g5
match
h7
match
a1
match
Kd2
match
Kg6
match
Qh4
match
Qe2
match
Qb7
match
Nf2
match
Nc6
match
Be4
match
Bf3
match
Bb2
match
Ra1
match
Rc3
match
Rh8
match
0-0
match
0-0-0
match
exd5
match
axb7
match
exd2
match
Bxc6
match
Bxa4
match
Qxe2
match
Qxb7
match
Nxf2
match
Nxb2
match
Bxb2
match
Rxh8
match
Rxc3
match
exd5(ep)
match
exd2(ep)
match
a1=Q
match
d1=Q
match
f8=Q
match
e8=Q
match
a1=N
match
b8=B
match
f1=R
match
d8=Q
match
bxc1=Q
match
exd1=Q
match
Raxc1
match
Rfxd2
match
R2xc1
match
R5xd2
match
Bxc6+
match
Rxh8+
match
Rh8+
match
Bxb2+
match
Rxc3++
match
Bxc6++
match
d8=Q++
match
2
no match
b
no match
i2
no match
a9
no match
5d
no match
K2
no match
Ki6
no match
Kf9
no match
Qp3
no match
Qd9
no match
Q3
no match
N
no match
Nz9
no match
Na10
no match
B2
no match (watch case)
Bb
no match
Bi4
no match
Ri5
no match
Ra9
no match
Sa2
no match
Zf3
no match
Jj2
no match
1-1
no match
0
no match
2-1
no match
0-1
no match
0-0-1
no match
0-0-0-0
no match
0--0
no match
bxa9
no match
hxi2
no match
Kxf9
no match
Qxp3
no match
Nxz9
no match
Bxi4
no match
Rxi5
no match
a1=
no match
a2=Q
no match
b4=N
no match
d1=S
no match
d5=G
no match
exd5=G
no match
exd1=S
no match
bxa1=
no match
Rdxd2
no match
Rexe2
no match
R2xe2
no match
Bxi4++
no match
Congratulations, your regex passes all the test cases! Remember to share this challenge.