I have a regular expression which is it returns anything inside the html tag with id="test"
ex:
<span id="test">Hello World</span>
<.*?id="pStyle".*?>(.*?)</.*?>
it returns Hello World
what if a tag is empty it should return too like
<span id="test"></span>
it should return a default value if a tag is empty. I'm currently new on regex is there any regular expression to derrive this empty tags?