embed_url = 'http://www.vimeo.com/52422837'
response = re.search(r'^(http://)?(www\.)?(vimeo\.com/)?([\/\d+])', embed_url)
return response.group(4)
Die Antwort ist:Python Regex Extrakt vimeo id von url
5
ich hatte gehofft,
52422837
jemand eine Idee? Ich bin wirklich schlecht mit regulären Ausdrücken: S
Das funktioniert .. Groß .. Danke! –