in reply to Re: Re: Re: (bbfu) (dot star) Re: Extract potentially quoted words
in thread Extract potentially quoted words
With .+?, it's inching forward a character at a time each time it can't find a " immediately there.Is that not what I said? With /.+?"/, first the regex engine tries to match a "; then it backtracks and extends .+? . It has to backtrack for every non-quote character before the ", whereas /[^"]"/ only backtracks once, when it gets to the ".
|
|---|