--
Hi everyone,
I need a hand for the following regex. The string is something like:
str = 'value=\"20\" />\r\n\t\r\n<\/div>","whatiwant":"<div id=\"whatiwant\">\r\n\t\r\n\t\t<\/div>","idontwanthat":"<div id=\"idontwanthat\">\r\n\t\r\n\t blablalblalblalbla \t\r\n\t\t\t<\/div>"'
I would like the entire div of "whatiwant". I tried the following:
matches=re.findall(r'\"whatiwant\":\"(.+?)\":\"',mstr)
ps: i can have other div in the div.
Any help with me appreciated