Thread: Regex examples
View Single Post
Old 12-23-2012, 09:46 AM   #162
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,684
Karma: 4392001
Join Date: Dec 2010
Device: Kindle 3
I'm sure that the Regex gurus will come up with a much more efficient Regex, but I'd simply search for a capital letter with a period followed by ‐ and another capital letter followed by a period:

Find: ([[:upper:]]\.)‐([[:upper:]]\.)
Replace: \1‑\2

This should work in Sigl and any other Editor with PCRE support.
Doitsu is offline   Reply With Quote