I have a string:
s <- "test.test AS field1, ablh.blah AS field2, faslk.lsdf AS field3"
I want to convert to:
"field1, field2, field3"
I know that the regular expression (\w+)(?:,|$) will extract the strings I want ('field1,' etc) but I can't figure out how to extract it with gsub.