Thread: Regex examples
View Single Post
Old 08-11-2014, 12:04 PM   #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,101
Karma: 11669487
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 12:14 PM. Reason: correction
Leonatus is offline   Reply With Quote