Kodi Community Forum
len(match) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: len(match) (/showthread.php?tid=139317)



len(match) - mikey1234 - 2012-08-29

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= ''



RE: len(match) - Bstrdsmkr - 2012-08-30

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