Hi! I'm newbie in Python. I can't understand why this code does not work:
reOptions = re.search(
"[\s+@twitter\s+(?P<login>\w+):(?P<password>.*?)\s+]",
document_text)
if reOptions:
login = reOptions.group('login')
password = reOptions.group('password')
I'm having an error:
IndexError: no such groupWith document_text
Blah-blah [ @twitter va1en0k:somepass ]