Regular Expressions 101

Community Patterns

0

transform regex

Golang
vault sync
Submitted by anonymous - 4 years ago

chess move detector

1

Regular Expression
ECMAScript (JavaScript)

/
^((?:[NBRQK]([a-h1-8])?x?(?!\2)[a-h](?!\2)[1-8]|[NBRQK]x?[a-h][1-8]|(?:[a-h]x)?[a-h](?:[1-8](?:\(ep\))?|[18]=[NBRQ])|(?:0-){1,2}0)\+{0,2})$
/

Description

Loading markdown...
Submitted by Terence Linnell - 8 years ago