Parent Directory | Revision Log | Patch
revision 1.1 by styxman, Tue Feb 4 23:33:28 2003 UTC | revision 1.2 by styxman, Fri Feb 7 21:04:13 2003 UTC | |
---|---|---|
# | Line 5 import re | Line 5 import re |
5 | ||
6 | def validate (cuit): | def validate (cuit): |
7 | # puede venir con o sin 'dashes' | # puede venir con o sin 'dashes' |
8 | if not cuit or cuit=='': | |
9 | return 1 | |
10 | matcher= re.compile ('(\d\d)\-(\d\d\d\d\d\d\d\d)\-(\d)') | matcher= re.compile ('(\d\d)\-(\d\d\d\d\d\d\d\d)\-(\d)') |
11 | matches= matcher.match (cuit) | matches= matcher.match (cuit) |
12 | if matches: | if matches: |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |