Thread
:
RegEx: anchor problem in editor
View Single Post
04-09-2018, 06:30 AM
#
4
kovidgoyal
creator of calibre
Posts: 45,467
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
(?<=M)\s*(?=M) will fail when there is no space because there is nothing to match. Remember that lookbehind/ahead assertions dont actually match anything, they only serve as anchors.
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS