Last active
April 29, 2021 07:32
-
-
Save massic80/52b1c15813302d1f93a0954802a80624 to your computer and use it in GitHub Desktop.
Check Italian Fiscal Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isValidFiscalCode = cf => /^([A-Za-z]{6}[\dlmnpqrstuvLMNPQRSTUV]{2}[abcdehlmprstABCDEHLMPRST]{1}[\dlmnpqrstuvLMNPQRSTUV]{2}[A-Za-z]{1}[\dlmnpqrstuvLMNPQRSTUV]{3}[A-Za-z]{1})$|(\d{11})$/.test(cf); |
U're welcome! :) Frontend developers would die, if they didn't help each other ;)
One more reason to visit Trento again!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for for the regexp and for the explanations you gave me :)