You might find it easier to use XML::Twig which is designed to process huge xml files.
In reply to Re: regex on gigabyte string by RichardK in thread regex on gigabyte string by focusonz