I am using regular expressions for text processing. For few sample texts, the Regex takes long time to process, because of which whole procedure is getting delayed.
I want to set a timer for the regex, so that if the regex exceeds the timer, skip the text and proceed further.
Is it possible to set in python ?