I want to extract all contents of div tag with the class **viewContent** but the problem when I executing the my code the php stop when reach the first closing tag of div. What should I do guys?. I have my sample code below but still only the first div tags get. Thank you guys for helping me.

```
  preg_match_all('#<div class="viewContent"[^>]*>(.*?)</div[^>]*>#is', $content, $s);
    print_r($s);

```

[![Here is the image of my code.](https://i.stack.imgur.com/dVsyx.png)](https://i.stack.imgur.com/dVsyx.png)