python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
import re patron = r"[^[^.{0}$]]|[^[^\s*$]]" patron2 = r"^(^$)|(([A-Z]{1,3})-([A-Z])([0-9]))" patron3 = r"^(^(^$)|(([A-Z]{1,3})-([A-Z])([0-9])))" patron4 = r"[^[^.{0}$]]|[^[^\s*$]]|(([A-Z]{1,3})-([A-Z])([0-9]))" patron5 = r"([A-Z]{3})-([0-9]{6})-([0-9]{5})" patron6=r"(^[0-9]$)|(^[0-9][0-9]$)|(^100$)" prueba = "1000" """ for i in range(101): if re.match(patron6,str(i)): print("valido") else: print("invalido") """ #""" if re.match(patron6,prueba): print("valido") else: print("invalido") #"""
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up