I believe you will find that the warning is because $Delay_id is undefined.
Or it is an warning elswhere in your code and unrelated, there is nothing structurally wrong with your regex.
Although I would have used /\(\d{2,3}/ or /\(\d\d\d?/ instead of 2 separate expressions
-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."