Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: multiple regexs against a single doc

AW: multiple regexs against a single doc

2007-08-01       - By Jan.Materne@(protected)
Reply:     1     2  

Maybe something like

<move>
 <filterchain>
   <tokenfilter>
     <filetokenizer/>
     <replaceregex pattern="" replace="" flags="s"/>
     <replaceregex pattern="" replace="" flags="s"/>


Jan



>-----Urspr?ngliche Nachricht-----
>Von: Mario Madunic [mailto:hajduk@(protected)]
>Gesendet: Dienstag, 31. Juli 2007 16:00
>An: Ant Users List
>Betreff: multiple regexs against a single doc
>
>Right now I'm doing the following with each regex that I
>require to replace some
>string or char
>
>
><replaceregexp match="(\ue06d)" replace="\&amp;#x00b5;"
>flags="g" byline="true"
>encoding="utf-8">
><fileset dir="${l_Drive}\${randDirName}\drop" includes="*.xml" />
></replaceregexp>
>
><replaceregexp match="(\u2009)" replace=" " flags="g" byline="true"
>encoding="utf-8">
><fileset dir="${l_Drive}\${randDirName}\drop" includes="*.xml" />
></replaceregexp>
>
>etc...(x100)
>
>This is a slow process as each file is "opened" and "closed"
>for each regex.
>What I'd like to do is open a file and parse with multiple
>regexs before going
>to the next regex. Is this possible? I have over a hundred regexs.
>
>Thanks
>
>Marijan Madunic
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.