Regular Expression To Match Italian Codice Fiscale

A regular expression to match Italian Codice Fiscale, which is used by the Public Administration to identify the citizens living in Italy.

/^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$/

Matches:

  • MRTMTT91D08F205J
  • MLLSNT82P65Z404U

Non-matches:

  • 12345
  • MRTMTT91D08F205JW
  • MLLSNT82P65Z404

See Also: