It would fail on "failregex = &lt;param&gt;  x=&lt;ip&gt; &lt;param&gt;" trying to substitute the second param as it though its already done that and suspected a recursion.