in reply to Logfile parsing (Moved from Q&A)

If the id # is all you want then you can get it using this.
$s =~ s/.*\+(\d+)\s.*/$1/;
If you need to get the full line that contains that specific page, including all the information you should be able to use this.
print $s if $s =~ /^.*GET\s\/company\/newsletter\.html\?id\+(\d+)\s.*$ +/;
Notice that I save the id# in $1 if you need that for further processing.

HTH

Update: I just read Death to Dot Star by Ovid, so there are probably better ways to do this. If I have a chance I'll see if I can figure something out.