non greedy search for ) in function regex