View Single Post
Old 02-27-2016, 08:35 AM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,367
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by theducks View Post
<dehyphen pass>
([a-z]-)</p>\s+([a-z])
\1\2 <no space in this replace. Also a step through pass

And you might want to do a emdash pass as well
Thanks Ducks!

I am nowhere close to an expert on regex... could you not do the third pass like such to get dash and emdash on the same pass?

<dehyphen pass>
([a-z])([-—])</p>\s+([a-z])
\1\3

The way I read yours is that it includes the "-" in the first parenthesis and would thus put it back on the replace.
Turtle91 is offline   Reply With Quote