Josef Novak wrote:
<regex>
  <pattern>(.*)\&amp;amp;TEXTO(.*)</pattern>
  <substitution>$1&amp;TEXTO$2</substitution>
</regex>

I'm not a hundred percent sure but, perhaps you need another escape
character in your substitution?
<substitution>$1&amp;TEXTO$2</substitution>
-->
<substitution>$1\&amp;TEXTO$2</substitution>

The examples in regex-normalize.xml contain this escape character.

Ah, indeed - regex requires that you escape this ampersand. So, your Java regexes:

   (.*)\&amp;TEXTO(.*)
   $1\&TEXTO$2

when put in XML need to be like this:

   (.*)\&amp;amp;TEXTO(.*)
   $1\&amp;TEXTO$2


--
Best regards,
Andrzej Bialecki     <><
___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


Reply via email to