Thread: Regex examples
View Single Post
Old 04-13-2020, 05:35 AM   #624
Skydancer
Enthusiast
Skydancer began at the beginning.
 
Skydancer's Avatar
 
Posts: 30
Karma: 10
Join Date: Mar 2019
Location: Slovenia
Device: PocketBoot Inkpad 3
I need some help... After OCR there are occasional punctuation errors like this in the text:

Wrong:
Quote:
»Lorem »ipsum dolor‘ sit amet, consectetur adipiscing elit.«
AND:
Lorem »ipsum dolor‘ sit amet, consectetur adipiscing elit.
Correct:
Quote:
»Lorem ,ipsum dolor‘ sit amet, consectetur adipiscing elit.«
AND:
Lorem ,ipsum dolor‘ sit amet, consectetur adipiscing elit.
The quotation marks used here (‘…’) are curvy/smart, not dumb.

I got this far:
Code:
Find:
».*?([a-z])\‘
... but it's probably too greedy, and I can't get the Replace to work properly.

Last edited by Skydancer; 04-13-2020 at 05:39 AM.
Skydancer is offline   Reply With Quote