For example, I have two strings:
stringA = "'contentX' is not one of ['Illumina NovaSeq 6000', 'Other', 'Ion Torrent PGM', 'Illumina HiSeq X Ten', 'Illumina HiSeq 4000', 'Illumina NextSeq', 'Complete Genomics', 'Illumina Genome Analyzer II']"
I am not familiar how to do regex and stuck to extract words within the first single quotes.
Expected
## do regex here
gsub("'(.*)'", "\\1", stringA) # not working
> "contentX"