Mirar @ Pike developers forum 10353@lyskom.lysator.liu.se wrote:
However, i'd like to know why while doing this: ----8<----8<----8<----8<----
object r = Regexp.PCRE.Studied("[\W]*$"); r->replace(foo, "");
---->8---->8---->8---->8---- Pike eats all my CPU and the command never finish.
Good question. The PCRE code should be easy to read though, feel free to investigate? :)
I just like other people confirm that's a real bug :)
Sounds like something that should be added to the testsuite, anyway. Both of the problems...
I inadvertendly found out that replace1() succeed where replace() failed:
----8<----8<----8<----8<---- $ pike Pike v7.6 release 112 running Hilfe v3.5 (Incremental Pike Frontend)
string foo = " This is some text \0\0\0"; object r = Regexp.PCRE.Studied("[\W]*$"); r->replace1(foo, "");
(1) Result: " This is some text" ---->8---->8---->8---->8----
Should be a good start to narrow down the problem.
pike-devel@lists.lysator.liu.se