View Single Post
Old 02-26-2024, 05:58 AM   #8
reinsley
Connoisseur
reinsley began at the beginning.
 
reinsley's Avatar
 
Posts: 65
Karma: 10
Join Date: Dec 2016
Location: France
Device: Kindle PaperWhite
Quote:
Originally Posted by lomkiri View Post
I think the OP wants the contrary, he wants to target the paragraph when the sentence doesn't begin with <space><em-dash> (really, it was a bit confusing, I hope I understood correctly)

So since the expression that shall avoid the replacement is a group of 2 chars (i.e. <space>—), I'm afraid we need a negative lookbehind once more.

The thing is that a space at the beginning of the paragraph is useless, is not displayed, and is not recommended. If there wouldn't be any, it would have been easier.
Correct, if the sentence starts with <p class> <span class><space><em-dash> I do not detect the next dotspace«space in the second part of the dialogue.

I can do a simple search and replace to remove the space after the html mark.

Best regards
reinsley is offline   Reply With Quote