…text text text. "Text text text…
Why this RegEx code (?<=\.|!"|\?") (?="[A-Z])
doesn’t work in Sublime Text, for the text as above? Though it works in Subtitle Edit…
The workaround ((?<=\.)|(?<=!")|(?<=\?")) (?="[A-Z])
works fine.
…text text text. "Text text text…
Why this RegEx code (?<=\.|!"|\?") (?="[A-Z])
doesn’t work in Sublime Text, for the text as above? Though it works in Subtitle Edit…
The workaround ((?<=\.)|(?<=!")|(?<=\?")) (?="[A-Z])
works fine.
Lookbehinds must be fixed length. See https://perldoc.perl.org/perlre#(*positive_lookbehind:pattern) and https://www.boost.org/doc/libs/1_66_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
So maybe switch from Perl engine to another (like .NET engine), which doesn’t have such unreasonable restriction?
Well, for me that day could be when they doesn’t support lookbehind in a correct way
It is the correct way to support lookbehinds in a PCRE compatible way.
I guess if someone manages to convince boost
and/or Oniguruma
developers to support variable length lookbehinds, ST would start supporting them at some point, too.