added REGEX to find function definitions