Odd, all the info I could find on regex never mentioned anything about this /g switch.
/([A-Za-z]+\(\))/g
To enhance my understanding of Regex, what are the parts I put in red for? Why did you add a / to the front? I have no idea what this would do. Escaping the ) in the original regex I put up doesn't really help me, as I don't want to search for a literal end parenthesis, so why is it escaped here? My goal was to find a string of letters, followed by (, and that's all the match I was after. Also, why the second parenthesis at the end? My guess regarding the last 2 is to have it search for the ), which I don't want matched, and if that's the case, I can probably remove them, but it still doesn't explain the / at the beginning of this one.