Regular Expressions 101

Library entries

FEN

Vote

1

Regular Expression
javascript

/
(?:x?[a-h][18]=(?!K)[KNBQR]|O-O(?:-O)?|(?:[a-h]?x)?[a-h](?![18])[1-8]|[KNBQR][a-h]?[1-8]?x?[a-h][1-8])[+#]?[\?\!]{0,2}(?:[\s]\{.*\})?
/
g

Description

Loading markdown...
Submitted by anonymous - 6 years ago