View Single Post
Old 11-27-2020, 02:42 AM   #10
EbookMakers
Enthusiast
EbookMakers began at the beginning.
 
Posts: 26
Karma: 38
Join Date: Nov 2019
Location: Paris, France
Device: none
Quote:
Originally Posted by jjk View Post
\K which resets the starting point of the reported match
Yes. \K is the same as a positive Lookbehind. As in the latter, we can have capture groups in the subpattern preceding \K. I use it because it is compatible with the PCRE flavor which rejects variable length Lookbehind. And I am building my regex in regex101.com with the PCRE flavor and gmu flags.

Last edited by EbookMakers; 11-27-2020 at 02:45 AM.
EbookMakers is offline   Reply With Quote