Regular Expressions 101

Library entries

Spanish NIE / NIF Validator

Vote

1

Regular Expression
javascript

/
(X(-|\.)?0?\d{7}(-|\.)?[A-Z]|[A-Z](-|\.)?\d{7}(-|\.)?[0-9A-Z]|\d{8}(-|\.)?[A-Z])$
/
gmi

Description

Loading markdown...
Submitted by Gauravity - 7 years ago