Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50069

Indefinite length lookbehind

$
0
0
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?

Viewing all articles
Browse latest Browse all 50069

Latest Images

Trending Articles



Latest Images