len(match)
#1
if you can have len(match) to see how many have been returned

cause its still part of re.

can you have len(search) cause it just comes back with errors?

if i have this

Code:
import re

link = 'English germ enGlish'
eng=''
if re.search('English', link, re.IGNORECASE):
        eng=' English,'    
if not re.search('English', link, re.IGNORECASE):
        eng= ''
Reply
#2
No, search is an on the fly operation. It doesn't know if there are any more results until you try to get the next one
Reply

Logout Mark Read Team Forum Stats Members Help
len(match)0