given the following string: "200 result=50 endpos=17760" if( /\s*endpos=((\d)*)\s*/ ) { $playBackOffset = $1; print STDERR "\nPlayBack Interrupted at Offset=$playBackOffset\n"; }