Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 76668 invoked from network); 20 Jul 2007 18:42:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 18:42:44 -0000 Received: (qmail 54600 invoked by uid 500); 20 Jul 2007 18:42:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 54553 invoked by uid 500); 20 Jul 2007 18:42:40 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 54542 invoked by uid 99); 20 Jul 2007 18:42:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 11:42:40 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eggie5@gmail.com designates 64.233.184.230 as permitted sender) Received: from [64.233.184.230] (HELO wr-out-0506.google.com) (64.233.184.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 11:42:37 -0700 Received: by wr-out-0506.google.com with SMTP id i31so698637wra for ; Fri, 20 Jul 2007 11:42:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eSXkqz0KDr0XV5A9mB834M9wdAxCfxsGo3N1C4IP/rMmOjTIjxyIbaVtuAUjdcI4bsPjmhaRzyaZLEt6vlAV4aTUhe35hnhxwoQUnq57EjjWN4sOsTViZp2nPA1AJIX+oDSJA/kbf3T0sf3Kw+Drxeo8HL5R+ePzwHgxa41pnCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=CwocR1BSqwEuxAIWtMWo8HwOaNUXJ2kjyhQq3BlpWGixsjTHRiAR4Xpo5CtvI1UHJ+hiVuqMNjdaAP4uUzZu7LDEUerBfm6atPwAtrGM0oFac6BPwNmjmIfk8so/i/U1fMifAWGsHTqG5Wfo5AQXYByYcE5vZvjMQui0SOfeMqQ= Received: by 10.142.132.2 with SMTP id f2mr55859wfd.1184956936169; Fri, 20 Jul 2007 11:42:16 -0700 (PDT) Received: by 10.142.106.20 with HTTP; Fri, 20 Jul 2007 11:42:16 -0700 (PDT) Message-ID: <6f7401650707201142w14ecb90arabb7611763e154f4@mail.gmail.com> Date: Fri, 20 Jul 2007 11:42:16 -0700 From: "Alex Egg" To: "Ant Users List" Subject: Re: Changing regex implementation in LineContainsRegExp filter In-Reply-To: <255d8d690707191214w9f96b57y4fa379b5586dde96@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_146299_6467583.1184956936125" References: <6f7401650707191158x79d591d7scb37a73a0ae80341@mail.gmail.com> <255d8d690707191214w9f96b57y4fa379b5586dde96@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_146299_6467583.1184956936125 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline OH, I overlooked the fact that linecontainsregexp returns a whole line. I guess I could reduce my regex to "<script". But, now that I have my script tags, how can I get the src attribute values out of them? Alex On 7/19/07, Dominique Devienne wrote: > > Have you tried putting the ORO impl in ANT_HOME/lib? > > But isn't you regexp more complex that it needs to be? --DD > > On 7/19/07, Alex Egg wrote: > > By default it looks like the LineContainsRegExp filter uses the > > java.util.regex package by default. However, apparently > > this particular regex implementation doesn't support * metacharacters > > in look-behinds, e.g.: (?<=\<script > > .*src=\")[^\"]+(?=\".*\</script\>) > > How can I change the implementation? > > > > Thanks, > > Alex > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_146299_6467583.1184956936125--