in reply to Re^3: how to restrict a regexp?
in thread how to restrict a regexp?

This came up here quite awhile back and at that time someone pointed out that alarm/sleep would not work in this context. During the regex execution they were suspended. I do not know if this is still the case as the regex engine got a pretty major overhaul since then and the internal details were beyond me at the time.