Is it possible for regular expression to match optional parameters like : func(optional parameters) in which the func name and some optional parameters be match for later retrieval. To match the func is easy, but if the optional parameters can be () (p) (p1, p2) .... is it possible to match these?