ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Kazakov" <Vad...@quadrus.com>
Subject RE: yet another regex question
Date Wed, 15 Dec 2004 15:55:12 GMT
What about using scriptdef. I've never used it, but maybe someone else
on this list can advise how you can define a script using scriptdef to
do this.

-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: December 14, 2004 8:55 AM
To: ant_user (E-Mail)
Subject: yet another regex question


Hi,

is there a possibility to scan a txtfile with filterchain + regex for :

pattern1
.
.	<-- i want to grab only the content between the two patterns
.
.
pattern2
line1
line2
line3 (optional)

??

Problem = i may not use the tailfilter and skip=3, because the
lines after pattern1 are variable in size.

Gilbert

 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message