laziness, impatience, and hubris | |
PerlMonks |
Re^5: extracting a substring from a string - multiple variablesby mwah (Hermit) |
on Oct 28, 2007 at 16:19 UTC ( [id://647706]=note: print w/replies, xml ) | Need Help?? |
Hmmm .. you are hitting the "quantifier length limit" of your perl implementation (which should be 0xffff) (?). (1) How long is your binary chunk at all (above message says "304507" - dooh!) and (2) what number is in the ... length="xxx" ... field? Really *that* large? update: How to read arbitary big binary chunks from within regular expressions ... You could advance until you hit the data (after the closing of the start tag) and simply read the data that follow. This implies you have one ... ...<file>..</file> ... entry per string at this point.
Regards mwa
In Section
Seekers of Perl Wisdom
|
|