I have a script which gets the inside of a body tag but not the outside, and I require both. I’ve searched around and I can only find code to get the inside of the body tag, not the outside. Any help? I could explode the string with “body” but the problem is, the attributes of the body tag can change and that’s what I’m stumped on -_-
Share
if you really want to use Regex to search outside of the
<body>...</body>, try with this(PHP):and keep start and end position from search result, use these for search outside of body tag.