in reply to Re: Split very big string in halfin thread Split very big string in half
The line that ended up working (splitting on the first </html> after 499,000 chars) is /(?:.{1000}){1,499}.*?<\/html>/gs;