News for hackers. Stuff that matters.
Re:Node.js in Flame Graphs by plorkyeran on Wednesday November 19, 2014 @01:15PM (#8631609)
Given that combined regex, how do you determine which of the routes that went in to it was the one that matched?
Re:Node.js in Flame Graphs by baudehlo on Wednesday November 19, 2014 @01:28PM (#8631683)
If it matched the first, match[2] is set. If it matched the second, match[3] is set.

Or you use a better regexp library than the default JS one and use named captures.