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 ".
In reply to Re: Re: Re: Re: (bbfu) (dot star) Re: Extract potentially quoted words
by chipmunk
in thread Extract potentially quoted words
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |