mIRC Home    About    Download    Register    News    Help

Print Thread
#148315 03/05/06 06:29 PM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
Im sure this is due to it being a crappy expression since it falls into a never ending loop but it might be nice if it didnt cause mIRC to die , theres not even a Send/Dont Send dialog.

//echo -a $regex(word word word,/(\b\w\w\w\w.*?)??(\b\1\b)??(?R)/g)


$maybe
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I guess that's most likely a bug in PCRE. I don't know any other languages that use it so I can't check but maybe someone who does could.

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks for the report. This is actually due to PCRE running out of stack space due to infinite recursion. The latest version of PCRE has an option to limit recursion depth, I'll see if I can use that to prevent the problem.


Link Copied to Clipboard