Thread: Regex examples
View Single Post
Old 09-18-2020, 11:31 AM   #673
ShdwMnrch
Junior Member
ShdwMnrch began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by DiapDealer View Post
Sigil's PCRE regex engine certainly supports positive lookbehinds. It just doesn't support variable-length lookbehinds--positive or negative. It's a known limitation of the PCRE engine.

Use \K to simulate a variable-length lookbehind:
Code:
<p>–( .*?)\K<\/p>
Make sure "Minimal Match" is unchecked when using the above expression.

More on the use of \K here: https://www.regular-expressions.info/keep.html
I see. I just started to learn how to use regex so that helps a lot, thank you
ShdwMnrch is offline   Reply With Quote