Given a string in between quotations, as such "Hello"
The following regular expression will print out a match of the string without the double quotations:
/"([^"]+)"/
I don't understand how it is capturing the characters. I believe what this should be capturing is just the initial double quote. What this regular expression is saying is find an expression that starts and ends with double quotes and again has one or more double quotes at the beginning. And it captures that one or more double quotes at the beginning. How does it end up matching the string here with [^"]+
?