4 ms·
> are parens and other operators treated literally by default or do they need to be escaped? > Can I use + to mean {1,} ? Can I use '?' to match 0 or 1 (commo
by dehrmann 6y ago
> are parens and other operators treated literally by default or do they need to be escaped?
> Can I use + to mean {1,} ? Can I use '?' to match 0 or 1 (common) or do I have to use = (vim)? Or maybe just {0,1}? But then should I escape the braces?
I think that's just older tools like vi and sed. Perl, Python, Java, and Javascript use a similar modern version where + and ? work, and parentheses and braces don't need to be escaped.