The format code you have here is essentially saying "take everything after the first double quote up to but not including the second double quote". The special
%[]
structure still allows you to specify a string, but instead of accepting any characters it sees, you can restrict the characters using codes within the square brackets. In this case those codes are
^\"
where the leading caret means "not any of the following characters", and the slash escapes the double quote, so the result is "take a string until you find a double quote".
As for what else you can do, check your particular library's docs, but for instance you can do things like "a-z" to accept only lower case letters (the dash specifies all the characters between a and z in the character set). So for example if you wanted to take only a DNA sequence you could use
[AGCT]
, or
[AGCTagct]
if you didn't want to be case sensitive. It is something like a
regular expression, but very much simpler.
Hope that helps!