You can use regular expressions to find patterns within quotes in a file in R. Here's an example code snippet that you can use:
315 chars12 lines
This code reads a file as a single long string, and then matches all occurrences of patterns within quotes using regular expressions. It then extracts the matched patterns and prints them. Note that .*?
inside the quotes in the regular expression is a non-greedy match, which means that it'll match the smallest possible pattern within quotes.
gistlibby LogSnag