Build, test, and debug regular expressions
Uses the classic alternation technique to match escaped quotes (\") and complete double-quoted strings (which may contain escaped quotes) as 'skip' alternatives, while capturing the + character in group 1. Run with the g flag, you check which alternative matched: if group 1 is set, the + lies outside any quoted string. Typical use is splitting or replacing delimiters/operators like a+b+"c+d"+e while ignoring occurrences inside string literals.