Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
Python

r"
^\d\d?(?:\.\d\d?)?(?:\.\d\d?)?$
"

Description

/* -- This is a RegEx for validating one Italian ATECO code. -- For original specification visit: http://www.istat.it/it/archivio/17888 -- Valid: */ 1 01 01.2 01.02 01.02.3 01.02.03

// Not Valid: a asc 0123 012.3 013.456 123456 01/02/03

Submitted by Marco Tonchella with the help of this Comunity that thanks a lot. - 9 years ago