Thread: Regex examples
View Single Post
Old 05-06-2019, 07:25 AM   #578
famfam
Connoisseur
famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2178856
Join Date: Oct 2013
Device: Kobo Clara HD
Quote:
Originally Posted by Klecks View Post
How does the styling around the problem area look like? Maybe there is a span involved or some kind of whitespace?
If so, you can adapt the search-expression to:

Code:
(?<!St|Mr|Mrs|Dr|<|\d)(<p[^>]*>\s*|\!|\?|\.|…|:)( ?|\s*</?span[^>]*>\s*?)(»|«|“|”|„)?( ?|\s*</?span[^>]*>\s*?)([A-ZÖÄÜ])
It doesn't catch everything though - especially if you have chains of spans or even nested spans or divs.
That code didn't work for me, don't know why.
Ich will give you 2 examples of footnotes in source text and book-view.
famfam is offline   Reply With Quote