Hello Arnie,


On  Monday, September 25, 2000  at  15:24:29 GMT -0400 (which was 12:24 PM
where I live) witnesses say Arnie typed:


> I need to be able to extract text that spans multiple lines.

> i.e.

>    #This is line 1
>     This is line 2
>     This is line 3~

I can't help you with the text extraction part, but hopefully I can
shed some light on the pattern match.

I'm guessing you have some delimiters that you know are at the
beginning and end of the section of text you want to extract, correct?
If that's the case, then substitute your beginning string for
"beginning" and your end string for "end"

Now the regexp should look something like:

(?i)(beginning(.*\n)*.*end\n)

So this *should* search for:

beginning - Whatever your starting string was

(.*\n)    - Any number of characters followed by a newline
(.*\n)*   - Repeat this any number of times
.*end\n   - search for any number of characters finished by your end
            string and a newline.

> Any help would be greatly appreciated.  Children will be renamed in
> your honor.  Just ask little Ming-Li (previously Max) and little Januk
> (previously Zoe).

Well I hope my namesake isn't too disappointed with this attempt.  :)


-- 
Thanks for writing,
 Januk Aggarwal
 See header for e-mail address

 Using The Bat! 1.47 Beta/3
 under Windows 98 4.10 Build 2222  A 

-- 
--------------------------------------------------------------
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 : archive@jab.org


Reply via email to