I am trying to extract quoted text fromlines in a file. Assume I have
read in a line as follows
type “this piece of text” into field called “search field”
I then want to extract the two pieces of quoted text from this line.
I’m halfway there with this
line =~ /(".*?")/
this will match the first piece of quoted text, which I can access
with $1. I’m having trouble getting the match to carry on & match the
next piece of quoted text.
Any help greatly appreciated