Time-out for regular expressions...

S

samslists

I'm doing a lot of regular expressions these days. Sometimes when I'm
crafting them I mess up, and make them too complicated. So that when
my program runs, they take forever. (Maybe not literally forever---I
abort the program after a few seconds.)

What I'd like to have happen is every time I search using a regular
expression is after a few seconds (the exact number being user
definable), it will stop searching, perhaps by raising an exception.

How can I implement this?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top