progs/catastrophic2.py
changeset 538 17acdd516ccd
parent 448 96129128d0f1
equal deleted inserted replaced
537:feb8a2a42625 538:17acdd516ccd
    13 
    13 
    14 # counter n given on the command line
    14 # counter n given on the command line
    15 cn = sys.argv[1]
    15 cn = sys.argv[1]
    16 
    16 
    17 # calling the matching function
    17 # calling the matching function
    18 m = re.match('(a*)*b' , "a" * int(cn)) 
    18 s = ("a" * int(cn))
       
    19 m = re.match('(a*)*b' , s) 
    19 
    20 
    20 print m.group(0)
    21 print s