I have a file saving IP addresses to names in format
<<%#$192.168.8.40$#% %#@Name_of_person@#% >>
I read This file and now want to extract the list using pythons regular expressions
list=re.findall("<<%#$(\S+)$#%\s%#@(\w+\s*\w*)@#%\s>>",ace)
print list
But the list is always an empty list..
can anyone tell me where is the mistake in the regular expression
edit-ace
is the variable saving the contents read from the file