Actually, you should only need to put parentheses around the entire pattern:

match="(pattern1|pattern2|pattern3|pattern4)" replace=""

Jon

Andrew Goktepe wrote:

Try this:
match="pattern1|pattern2|pattern3|pattern4" replace="" If that doesn't work try putting parentheses around each pattern in the above regexp -Andrew

On 9/27/05, *João Augusto Charnet* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    In this case yes.
    Actually I'm removing these patterns, replacing them with a "" .

    John.

    Andrew Goktepe wrote:

    Are you replacing the same string for all 4 patterns?
-Andrew

On 9/26/05, *João Augusto Charnet* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Hello,
        I'm need to do 4 replaces in more than 100 files, using
        replaceregexp task.
        My problem is that I'm doing 4 times the replaceregexp task,
        and it's beeing to costly.
        Is there a way I can tell the replaceregexp task to find more
        than one pattern in a file, instead of only one ?

        Thanks a lot.
        John
--
        <http://www.sfw.com.br/>*Softway & Softcomex *

                

        *João Augusto Charnet*
        Computer Engineer - R&D Team

        *Phone/Fax: 55 19 3739-9261
        E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        R. Conceicao, 233 - Cj, 609 - Centro
        13010-050 - Campinas - SP - Brazil
        *




--
    <http://www.sfw.com.br/>*Softway & Softcomex *

        

    *João Augusto Charnet*
    Computer Engineer - R&D Team

    *Phone/Fax: 55 19 3739-9261
    E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    R. Conceicao, 233 - Cj, 609 - Centro
    13010-050 - Campinas - SP - Brazil
    *


Reply via email to