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


/g is actually for "global". Greedy is for repetition in regex.
http://www.regular-expressions.info/repeat.html

Edit: Never mind. Reading comprehension failure.

Last edited by Thrull; 30/05/10 01:43 AM.