Good morning Andrew,
  I should have done this before.  Below is a clipping from the mail
logfile containing one of the sections I'm trying to search/highlight
for.  The hyphens are on seperate lines and kind of delineate that
particular email transaction.

<SNIPSNIP>
Mon 2008-10-20 09:59:50: ----------
Mon 2008-10-20 10:00:30: Session 2737; child 2; thread 2184
Mon 2008-10-20 10:00:30: Accepting SMTP connection from
[192.168.0.154:2347]
Mon 2008-10-20 10:00:30: --> 220-NoSpam.com ESMTP MDaemon 192.168.0;
Mon, 20 Oct 2008 10:00:30 -0500
Mon 2008-10-20 10:00:30: --> 220-Unauthorized relay prohibited.
Mon 2008-10-20 10:00:30: --> 220 All transactions and IP addresses are
logged.
Mon 2008-10-20 10:00:30: <-- HELO 192.168.0.154
Mon 2008-10-20 10:00:30: --> 250 NoSpam.com Hello 192.168.0.154,
pleased to meet you
Mon 2008-10-20 10:00:30: <-- MAIL FROM:<[EMAIL PROTECTED]>
Mon 2008-10-20 10:00:30: --> 250 <[EMAIL PROTECTED]>, Sender ok
Mon 2008-10-20 10:00:30: <-- RCPT TO:<[EMAIL PROTECTED]>
Mon 2008-10-20 10:00:30: --> 250 <[EMAIL PROTECTED]>, Recipient ok
Mon 2008-10-20 10:00:30: <-- DATA
Mon 2008-10-20 10:00:30: Creating temp file (SMTP): c:\mdaemon\temp
\19\md50000000004.tmp
Mon 2008-10-20 10:00:30: --> 354 Enter mail, end with <CRLF>.<CRLF>
Mon 2008-10-20 10:00:30: Message size: 6343 bytes
Mon 2008-10-20 10:00:30: Socket error sending response to DATA
Mon 2008-10-20 10:00:30: *  Winsock Error 10054 Connection was reset
by the other side!
Mon 2008-10-20 10:00:30: SMTP session terminated (Bytes in/out:
6439/338)
Mon 2008-10-20 10:00:30: ----------
</SNIPSNIP>

Sorry I didn't post this before.  So I would like to be able to search
for and highlight the portion starting at "timesheet" (perhaps "FROM:
timesheet"?) through a potentially varying number of lines to the line
with "Winsock Error"; then be able to hit "n" for next to go to the
next occurrence of this Winsock error from timesheet.  Hope this makes
it more clear.

thanks again!


On Oct 23, 5:53 pm, Andrew Long <[EMAIL PROTECTED]> wrote:
> On 23 Oct 2008, at 22:32, SysAdm wrote:
>
>
>
> > Thanks Andrew!  Actually, the "timesheet" is part of an email address,
> > but I tried it without the angle brackets and it worked great for the
> > first occurrence.  Unfortunately, when I did "n" for next, it seemed
> > to find the next occurrence of "timesheet", then keep highlighting
> > through many pages.
> > I guess that means, the search needs to only find "timesheet" through
> > "Winsock" that are between sections beginning and ending with
> > "------".
> > Know of a way to add that into the search?
> > Thanks again for your help!
> > HappyDad
>
> More assumptions.... and you know what they say about assuming <grin/>
>
> I'm assuming that the hyphens are on the same line as the 'timesheet' an
> 'winsock' lines, and start to the left of timesheet, and after the end  
> of
> winsock. You can juggle the positioning if that's different...
>
> /------.*timesheet\_.\{-\}Winsock.*------/
>
> Your problem might have been caused by the presence of a line containing
> 'timesheet' that was NOT related to the information that you're after.
> There needs to be some unambiguous way to select only the starting
> occurrence for what you DO want.
>
> If the hyphens are  on separate lines from the words, this might be
> worth trying:-
>
> /------.*\n.*timesheet\_.\{-\}Winsock.*\n.*------/
>
> regards, Andy
> --
> Andrew Long
> andrew dot long at mac dot com
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to