Not sure if this is possible even with regex/Sublime Text 2. Looking to take the first (positive) value (1759) of a line and copy it to the end of each related line in comment format. Copy is made to all (negative vale "B" lines until the next/new positive line, where that positive value (1753) is copied to the related lines. I have over 1600 lines with this format to comment on, wondering if there was a quicker method than entering each one manually. Note "B" lines are not related to "C" lines.
s(1759,"B 1",{99168,99157,99158,99159,105779,105792},4)
s(-1764,"B 2 (L)",{105819,105140,104956,105141,105086,105119},nil)
s(-1763,"B 3 (R)",{99086,99080,99081,99082,105086,105119},4)
s(-1762,"B 4 (L)",{105432,105638,105454,105639,105584,105617},nil)
s(-1761,"B 5 (R)",{99406,99402,99403,99404,105584,105617},4)
s(-1760,"B 6 (L)",{105183,105809,105754,105800,105779,105792},nil)
s(1753,"C",{105161,99108,99109,99104,105784,105790},64)
s(-1755,"C (R)",{105410,99352,99353,99354,105597,105598},64)
s(-1754,"C (L)",{105329,105161,105259,105404,105755,105784,105790},nil)
into:
s(1759,"B 1",{99168,99157,99158,99159,105779,105792},4) --1759
s(-1764,"B 2 (L)",{105819,105140,104956,105141,105086,105119},) --1759
s(-1763,"B 3 (R)",{99086,99080,99081,99082,105086,105119},4) --1759
s(-1762,"B 4 (L)",{105432,105638,105454,105639,105584,105617},) --1759
s(-1761,"B 5 (R)",{99406,99402,99403,99404,105584,105617},4) --1759
s(-1760,"B 6 (L)",{105183,105809,105754,105800,105779,105792},) --1759
s(1753,"C",{105161,99108,99109,99104,105784,105790},64) -- 1753
s(-1755,"C (R)",{105410,99352,99353,99354,105597,105598},64) -- 1753
s(-1754,"C (L)",{105329,105161,105259,105404,105755,105784,105790},nil) -- 1753