<div dir="ltr">I know that Python can tell if a loop is infinite, although I'm not sure if that behavior applies to Regex (and I can't test it -- I couldn't write an infinite search if required...but if you provide one, I will). What I mean is that there may be something of interest in their source.<br>
<br>Thomas Allen<br><br><div class="gmail_quote">2008/9/8 Hans-Jörg Bibiko <span dir="ltr"><<a href="mailto:bibiko@eva.mpg.de">bibiko@eva.mpg.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 07.09.2008, at 15:06, Allan Odgaard wrote:<br>
> On 4 Sep 2008, at 10:44, Hans-Jörg Bibiko wrote:<br>
>> [...]<br>
>> [ATTENTION TextMate will freeze!!!!]<br>
>>><br>
>> [...]<br>
>> Of course, this is a problem of the regexp but if one wants to<br>
>> develop<br>
>> such a regexp such errors could appear. The question now is how to<br>
>> interrupt such an eternal regexp loop??<br>
>> To be honest I have no idea but maybe one could listen to the<br>
>> keyboard<br>
>> event (APPLE+.) inside of the regexp function.<br>
><br>
> It's easier said than done (allowing graceful aborting of exponential<br>
> time regexps)<br>
Unfortunately I know ;)<br>
<br>
> but it is something which is on the radar.<br>
Thanks!<br>
<br>
--Hans<br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br></div>