Hello Arnie

On Mon, 25 Sep 2000 15:24:29 -0400, Arnie wrote:

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

A> i.e.

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

There are 'internal options' for RegExp's. In your case

(?s)#.*~

should do it. '(?s)' sets the internal option DOTALL, which is
documented in the help file as:

> PCRE_DOTALL: If this bit is set, a dot metacharater in the pattern
> matches all characters, including newlines. Without it, newlines are
> excluded. This option is equivalent to Perl's /s option. A negative
> class such as [^a] always matches a newline character, independent
> of the setting of this option.

BTW: finding the RegExp help topics is tricky, because there is no
link in the help index. Use the Find command in help and look for
"Regular expressions syntax"

HTH

Peter
-- 
Peter Steiner <[EMAIL PROTECTED]>

-- 
--------------------------------------------------------------
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