progs/catastrophic/catastrophic.python
changeset 982 617fc6cfc94a
parent 964 d3e22099963d
equal deleted inserted replaced
981:82d0a2aa1849 982:617fc6cfc94a
    18 # calling the matching function
    18 # calling the matching function
    19 s = ("a" * int(cn))
    19 s = ("a" * int(cn))
    20 m = re.match('(a*)*b' , s) 
    20 m = re.match('(a*)*b' , s) 
    21 
    21 
    22 print(s)
    22 print(s)
    23 print(m)
    23 print(bool(m))