GNU Sed, 33
Score includes +2 for -rn
options to sed.
This is almost a direct port of @FryAmTheEggman's Retina answer:
:
s/(\w)(.*,.*)\1/\2/i
t
/\w/Q1
Score includes +2 for -rn
options to sed.
This is almost a direct port of @FryAmTheEggman's Retina answer:
:
s/(\w)(.*,.*)\1/\2/i
t
/\w/Q1