View Single Post
Old 05-17-2025, 04:21 AM   #1
ElMiko
Addict
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Indefinite length lookbehind

I'm trying to find instances of the following string

Code:
said. “
(where the quotation mark is a curly opening quotation mark)

I want to exclude matches where the string is preceded by a word, preceded by a closing curly quotation mark. e.g.

Code:
” Jack said. “
My solution for this would be a regex search like:

Code:
(?<!”\s\w+?\s)said\. “
However, as soon as I add the quatifier "+" I get the error message for invalid Regex.

I was under the impression that 2.4.2's regex natively allows for indefinite length lookbehinds. What am I doing wrong? Is there some a different syntax that needs to be used for indefinite length lookbehinds?

Last edited by ElMiko; 05-17-2025 at 05:15 AM.
ElMiko is online now   Reply With Quote