basically I am using bash shell script cat new | sed '/1. /,/<div/!d' > new2 to extract text starting from 1.  and ending at first occurrence of <div. And then saving it into a new2 file. How to do the same work in php using pcre.
basically I am using bash shell script cat new | sed ‘/1. /,/<div/!d’ > new2
Share
Test: