Anonymous user
Rep-string: Difference between revisions
m
→Python: Regexp: Use rep-string
(Add NetRexx implementation) |
m (→Python: Regexp: Use rep-string) |
||
Line 179:
if not g4 and g1 and g1.startswith(g3):
return '%r repeats %r' % (g0, g1)
return '%r is not a
def checkit(txt):
Line 192:
'1010101010' repeats '1010'
'1111111111' repeats '11111'
'0100101101' is not a
'0100100' repeats '010'
'101' is not a
'1' is not a
=={{header|REXX}}==
|