x <- c("Proper Nouns are usually Capitalized.",
"proper nouns are usually Capitalized. This is, Proper for proper nouns.",
"The IBM5100 Portable Computer was one of the first portable computers.",
"IBM5100 is the name of one of the first portable computers.",
"The IBM5100 Portable Computer was one of the first portable computers.")
regmatches(x, gregexpr("[?!.]\\s*\\w+(*SKIP)(*F)|\\b(?!^)\\p{Lu}\\w*\\b", x, perl=TRUE))
eCA8LSBjKCJQcm9wZXIgTm91bnMgYXJlIHVzdWFsbHkgQ2FwaXRhbGl6ZWQuIiwKCSJwcm9wZXIgbm91bnMgYXJlIHVzdWFsbHkgQ2FwaXRhbGl6ZWQuIFRoaXMgaXMsIFByb3BlciBmb3IgcHJvcGVyIG5vdW5zLiIsCgkiVGhlIElCTTUxMDAgUG9ydGFibGUgQ29tcHV0ZXIgd2FzIG9uZSBvZiB0aGUgZmlyc3QgcG9ydGFibGUgY29tcHV0ZXJzLiIsCgkiSUJNNTEwMCBpcyB0aGUgbmFtZSBvZiBvbmUgb2YgdGhlIGZpcnN0IHBvcnRhYmxlIGNvbXB1dGVycy4iLAoJIlRoZSBJQk01MTAwIFBvcnRhYmxlIENvbXB1dGVyIHdhcyBvbmUgb2YgdGhlIGZpcnN0IHBvcnRhYmxlIGNvbXB1dGVycy4iKQoKcmVnbWF0Y2hlcyh4LCBncmVnZXhwcigiWz8hLl1cXHMqXFx3KygqU0tJUCkoKkYpfFxcYig/IV4pXFxwe0x1fVxcdypcXGIiLCB4LCBwZXJsPVRSVUUpKQ==