I am using Node.js to handle text with regex. I have the following strings
<span class="ls8">, <span class="ls8">respiration<span class="ls8">, and
</span><span class="ls8">photosynthesis<span class="ls8">. At least </span>
</span></span></span></div>
Here i am trying the following Regex, but did not get parent tags
<span class="(.*?)">(.*?)<\/span>
Close span is not getting at end. But it catches first close span.
How to get parent span?
Any one assist me to handle?
Thanks in advance.