in reply to Re^5: extracting a substring from a string - multiple variables
in thread extracting a substring from a string - multiple variables
if ( $indata =~ s{<file fiop="([^"]+)" length="([^"]+)"/>(.*?)</file>} +{}s ) { ( $fiop, $fileLength, $fileData ) = ( $1, $2, $3 );
if ( $indata =~ s{<file fiop="([^"]+)" length="([^"]+)"/>(.{$2})</file +>}{}s ) { ( $fiop, $fileLength, $fileData ) = ( $1, $2, $3 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: extracting a substring from a string - multiple variables
by graff (Chancellor) on Oct 28, 2007 at 20:30 UTC | |
|
Re^7: extracting a substring from a string - multiple variables
by mwah (Hermit) on Oct 28, 2007 at 20:25 UTC | |
|
Re^7: extracting a substring from a string - multiple variables
by walinsky (Scribe) on Oct 28, 2007 at 21:46 UTC |