On Wed, Apr 1, 2009 at 12:13 AM, Fergus McMenemie <fer...@twig.me.uk> wrote:

> Hmmm, I am sure I have seen this as well!
>
>  <field column="id" regex="(.*)" replaceWith="$1#${x.imgvurl}"
> sourceColName="fileAbsolutePath"/>
>
> I get the #${x.imgvurl} added twice.
>

Indeed. I wrote the following test:

Pattern p = Pattern.compile("(.*)");
Matcher m = p.matcher("xyz");
Assert.assertEquals("", "Video", m.replaceAll("Video"));

The test fails. It gives "VideoVideo" as the actual result. I guess there is
something about Matcher.replaceAll that I don't know. Off to read the
javadocs then.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to