in reply to Perl Extract specific string

Sure, see perlintro and Re^3: Quick Question about batching files and Re^3: file header change