I have string which contains HTML tags. In the head tag of the HTML, the user has a defined style and also for the body of the html
tag.
How do I get the style value using a regular expression?
A string is like:
> String text = "<html><head style="colour:red;"></head><body
> style="padding:9px;">Sagar hi</body></html>";