Thanks, Marc. Maybe you are right, at least I don't have a handy example to prove you wrong ;-). Actually, I found a workaround for my specific case: If I use something like <replaceFilter regex="(foo)\w+" replacement="$1[REMOVED]"/> (i.e. without any $2) it replaces all matches globally...
Cheers, Michael -----Original Message----- From: webtest-ad...@lists.canoo.com [mailto:webtest-ad...@lists.canoo.com] On Behalf Of Marc Guillemot Sent: Donnerstag, 19. Februar 2009 14:31 To: webtest@lists.canoo.com Subject: Re: [Webtest] replaceFilter: Is there a possibility to apply the regex more than once per line (i.e. global match) Hi Michael, replaceFilter replaces all matched expressions. The problem here is probably your regex. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Michael Zwick wrote: > Hi, > > > > I’ve got a question about <replaceFilter/>: I noticed, that if I define > a filter like the example below it will do just one replacement per line > in the HTML document to be filtered. I’d like to filter all matches in > the line. I.e. I’d like to do something like m/matchstring/g (with ‘g’ > for global match). > > > > For example, this > > <replaceFilter regex="(foo)\w+(bar\.[gif|css|jpg])" > replacement="$1[REMOVED]$2"/> > > will do just one replacement in each HTML line. > > > > Thanks a lot for any hints, > > Michael > > > _______________________________________________ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest Y��z�fj)b� b�՞m7��X������hm����+-�Ƨ��(����Y���b�ا~��y�^�