Modifying regex to capture long function names