Substitute (String)

*stumble over a strange but nasty one…
when parsing through a lot of text (XML) and trying substitute something the output spits out nothing at some point (not even zero).
can only be fixed by replacing the node with a new one…

can anyone reproduce?

  • a small one… “.” within RegExpr is not just returning any character from a line like told in the documentation but ignores linebreaks.

(makes it quite difficult to search for a keyword and return the whole line which contains it)

or is it the desired function?

substitute(string): yes can reproduce it. Same here. With a lot of XML (XHTML) from time to time it spits out an empty string. This bug is reported and known. Hopefully it will be fixed soon.