RusselB is right. You need the /g modifier to make regex greedy in searching for the match globally.
Quote:
/([A-Za-z]+\(\))/g