I'm using ExtendScript 3.92.115, and I'm noticing that a certain regular expressions don't work properly. I've tried the same expressions on popular browsers, and they work fine. Here's an example:
The alert should display the array: ["ab", "a"], because there is a match ("ab"), and one capturing group ("(.)" captures "a"). Instead it displays ["ab", undefined], which makes no sense. It works fine if both groups are capturing: "(.)(.*?)$", if you remove the non-greedy modifier: "(.)(?:.*)$", or even if you don't group the second part: "(.).*?$".
Any thoughts? I can modify my regular expressions to work around these problems, but it'd be good to fix the engine if it's really broken, as I suspect.
Europe, Middle East and Africa