View Single Post
Old 09-09-2014, 04:14 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,114
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by eschwartz View Post
I would just use

Search:
Code:
»([^«»]*)«
Replace:
Code:
«\1»
Matches all matched sets only, doing both replaces in one go using a capture group to preserve inner text. Assumes no weird-foreign-symbols-I-forget-the-name-of inside matching sets.
But then you still have to do it my way to handle any unmatched sets. So this is just one extra S/R that doesn't need to be done. Yes, you can get unmatched sets when you have a new paragraph in the middle of someone talking.
JSWolf is offline   Reply With Quote