Thread: Regex examples
View Single Post
Old 08-11-2014, 11:04 AM   #401
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Just to report:
Code:
(?<![.!?])(\s»?)(Du|Dich|Dir|Er|Ihn|Ihm|Ihr|Es|Wir|Uns|Euch|Jeder|Jede|Alle|Alles)\b
matches uppercase pronouns also after sentences that end with closing guillemetsm such as:
blah.« Er ging ...

So complete
Code:
(?<![.!?«])(\s»?)(Du|Dich|Dir|Er|Ihn|Ihm|Ihr|Es|Wir|Uns|Euch|Jeder|Jede|Alle|Alles)\b
I suppose ...

no, doesn't work, because there is a whitespace following the closing guillemet.

Last edited by Leonatus; 08-11-2014 at 11:14 AM. Reason: correction
Leonatus is offline   Reply With Quote