I have to at least try :)

s = "abababababababab"

for x in range(len(s)):
...     try:
...             s.index("aba", x, x + 3)
...     except ValueError:
...             pass

rd

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to