Re: ant/JakartaOroRegexp multiline question

Dan Urbano <[email protected]> Fri, 18 Nov 2005 11:08:31 -0800
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <OFCF48A0AF.25AA0C2F-ON882570BD.0069268B-882570BD.00692695@tamgroup.com>
I want to finish this thread up in case other people want to find out
whether this ended up working or not.

Thank you Daniel for the help.  I ended up using the following (excluding
the quotes) in ant.

"^LOOK FOR ME//s+AND ME"

I used //s+ since the text files I am parsing could contain both "/r" and
"/n".

Again, thank you.

Daniel

-----"Daniel F. Savarese" <[email protected]> wrote: -----


To: "ORO Users List" <[email protected]>
From: "Daniel F. Savarese" <[email protected]>
Date: 11/17/2005 05:54PM
Subject: Re: ant/JakartaOroRegexp multiline question


I wrote:
>You need to account for the newline because $ and ^ are zero-length
>positional expressions (i.e., put \n between the $ and the ^).  Keep

I forgot to add that the the $ and ^ are redundant once you put the \n in
between them, so you should use ^LOOK FOR ME\nAND ME$ as the expression.

daniel

-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

   s a v a r e s e      # In distant lands, I hear the call of my home.
  software research     # Yet my work is not done.  My journey's just
begun.
http://www.savarese.com/#  -- http://www.sleepandthetraveller.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]