51 ms·
The ? syntax group has to be the most unmemorable of the bunch. I've used it maybe over 1,000 times or so and I still have to look up ?: Or ?! ?< or whatever el
by kristopolous 5y ago
The ? syntax group has to be the most unmemorable of the bunch. I've used it maybe over 1,000 times or so and I still have to look up ?: Or ?! ?< or whatever else.
I used to have a laminated sheet on my wall at an office because it was so terribly bad.
- cdaven 5y agoSub-expression or capture group: (foo) Named capture group: (?<name>foo) Non-capturing group: (?:foo) Lookahead: (?=foo) For negative lookahead, change = to !: (?!foo) For lookbehind, add <: (?<=foo) For negative lookbehind, change = to !: (?<!foo) (Not from memory, had to look everything up...)
- ehsankia 5y ago> (Not from memory, had to look everything up...) right, great list but I'll forget it all by tomorrow.