Januk, Thanks a million for the macro text! It does exactly what I need it to do. Your answer came almost immediately -- what a strange and marvelously connected world we live in. (I'm not usually this cheerful.) For everyone else's reference I'm also including this response from TB tech support: >Date: Fri, 24 Nov 2000 08:16:05 +0200 >From: Stefan Tanurkov <[EMAIL PROTECTED]> >Organization: RIT Research Labs >To: David Perrotta <[EMAIL PROTECTED]> >Subject: Re: The Bat! - information request > >Hello David, >> >Yes, you should read the "Using Regular Expressions in Templates" >topic in the help file. It is located in the "Regular Expressions" >chapter. There were examples and you can learn how to use RegExps >fast... > >Also, you may want to look at the TBUDL archives - they have a lot of >examples of using regular expressions - >http://tbudl.thebat.dutaint.com > >-- >Read you later > Stefan mailto:[EMAIL PROTECTED] > >..."It compiled? The first screen came up? Ship it!" (Bill Gates) > best regards, -David Perrotta --- Januk Aggarwal <[EMAIL PROTECTED]> wrote: > Hello David, > > On Thu, 23 Nov 2000 at 21:21:39 GMT -0800 (PST) > (which was 9:21 PM > where I live) witnesses say David Perrotta typed: > > > From the little I understand of TB's regular > > expressions capabilities, I think that there IS > some > > way to do this. > > > Here's an example of the type of e-mail I'd be > > responding to and from which I'm trying to extract > the > > information for FIRST NAME and LAST NAME so that I > can > > insert these into my auto reply: > > >>First Name: David N. > >>Last Name: Perrotta > > Try the following: > > ---Begin Macro--- > > %SETPATTREGEXP="(?is).*?First.Name:\s*(.*?)$.*?Last.Name:\s*(.*?)$"%REGEXPBLINDMATCH="%TEXT" > Extracted First Name: %SUBPATT="1" > Extracted Last Name : %SUBPATT="2" > > ---End Macro--- > > When applied to the message you sent, this is the > output: > > Extracted First Name: David N. > Extracted Last Name : Perrotta > > Try that and see if it works for you. > > Hope that helps. > > -- > Thanks for writing, > Januk Aggarwal > See header for e-mail address __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ -- -------------------------------------------------------------- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: <mailto:[EMAIL PROTECTED]> To Unsubscribe from TBUDL, double click here and send the message: <mailto:[EMAIL PROTECTED]> -------------------------------------------------------------- You are subscribed as : [email protected]

