I have a requirement wherein I have to extract content inside <raw>
tag. For example I need to extract abcd
and efgh
from this html snippet:
<html><body><raw somestuff>abcd</raw><raw somesuff>efgh</raw></body></html>
I used this code in my python
re.match(r'.*raw.*(.*)/raw.*', DATA)
But this is not returning any substring. I'm not good at regex. So a correction to this or a new solution would help me a great deal. I am not supposed to use external libs (due to some restriction in my company).