3 ms·
For Abba... Why doesn't (.)(.)\2[^\1] work? I thought backreferences matched the captured literal, so negating it would match? But this looks the same as (.)(
by scott_karana 13y ago
For Abba...
Why doesn't (.)(.)\2[^\1] work?
I thought backreferences matched the captured literal, so negating it would match? But this looks the same as (.)(.)\2\1...
- annasaru 13y ago(.)(.)\2\1 ?
- goldenkey 13y agoYou cannot negate a capture, only a character literal. A capture might only be a character but it is NOT a literal,
- scott_karana 13y agoGotcha. That makes perfect sense. Thank you! :)
- goldenkey 13y agoYou got it :-)