Time out a regular expression in Python 2.6.4?

2010-02-15 Thread python
Is there any way to time out a regular expression in Python 2.6.4? Motiviation: Our application allows users to enter regular expressions as validation criteria. If a user enters a pathological regular expression, we would like to timeout the evaluation of this expression after a short period

Re: Time out a regular expression in Python 2.6.4?

2010-02-15 Thread Steve Holden
pyt...@bdurham.com wrote: Is there any way to time out a regular expression in Python 2.6.4? Motiviation: Our application allows users to enter regular expressions as validation criteria. If a user enters a pathological regular expression, we would like to timeout the evaluation

Re: Time out a regular expression in Python 2.6.4?

2010-02-15 Thread Jonathan Gardner
On Feb 15, 7:59 am, Steve Holden st...@holdenweb.com wrote: pyt...@bdurham.com wrote: Is there any way to time out a regular expression in Python 2.6.4? Motiviation: Our application allows users to enter regular expressions as validation criteria. If a user enters a pathological regular

Re: Time out a regular expression in Python 2.6.4?

2010-02-15 Thread Steve Holden
Jonathan Gardner wrote: On Feb 15, 7:59 am, Steve Holden st...@holdenweb.com wrote: pyt...@bdurham.com wrote: Is there any way to time out a regular expression in Python 2.6.4? Motiviation: Our application allows users to enter regular expressions as validation criteria. If a user enters

Re: Time out a regular expression in Python 2.6.4?

2010-02-15 Thread MRAB
Steve Holden wrote: Jonathan Gardner wrote: On Feb 15, 7:59 am, Steve Holden st...@holdenweb.com wrote: pyt...@bdurham.com wrote: Is there any way to time out a regular expression in Python 2.6.4? Motiviation: Our application allows users to enter regular expressions as validation criteria