progs/catastrophic2.py
changeset 538 e03107e79d26
parent 448 96129128d0f1
equal deleted inserted replaced
537:55c9f30d0ed2 538:e03107e79d26
    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