# $replace( $loop(a)xxx$loopend() ),x,y) is not working?

**URL:** https://community.mp3tag.de/t/replace-loop-a-xxx-loopend-x-y-is-not-working/13216
**Category:** Export
**Created:** [March 13, 2012, 9:34pm UTC](https://community.mp3tag.de/t/replace-loop-a-xxx-loopend-x-y-is-not-working/13216 "2012-03-13T21:34:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [March 13, 2012, 9:34pm UTC](https://community.mp3tag.de/t/replace-loop-a-xxx-loopend-x-y-is-not-working/13216/1 "2012-03-13T21:34:44Z")

</div>

I'm trying to do a longer list of replaces around the whole ouput of a export file, but stumbled across the problem, that the text inside $loop(a)...$loopend() is not replaced.

Here is a example, melted down to the core of the problem:

$replace(xxx  
$loop(%\_path%)xxx  
$loopend()xxx,x,y)

Output (for three files):  
yyy  
xxx  
xxx  
xxx  
yyy

Is there anything I can do to get:  
yyy  
yyy  
yyy  
yyy  
yyy

Since the list of replaces in my actual export is very long (URL endcoding via $replace function), I would like to achieve this without using $replace inside the $loop...$loopend.
