I am trying to find all the emails for the given string
Here's the regex:
r"([a-zA-Z0-9_.+-]+(?:\@|\[(?:(?:at|AT|@))\])+[a-zA-Z0-9-]+(?:\.|\[(?:[dtoDTO0\.])+\])[a-zA-Z0-9]+)"
String length is too long(~2L). It's taking too long to find all the matching emails. I like to use timeout concept if regex takes too long. Any suggestions?