View Single Post
Old 09-23-2011, 08:12 AM   #1
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
RegEx Help needed

I've just bought a book and it is full of sentences that have random words that begin with a capital letter in them.

As it's a book I've read before in paper form I realised that these are in fact not random words with capital letters, they are actually the start of the next sentence and the previous word is missing the full stop.

I'm not at all familiar with regex so was wondering what I would need to put in the S&R boxes to look for words that begin with a capital letter but are not preceeded by a full stop and a space? And what I need to put in to add the full stop.

Also there are a few words that not only had the full stop missing, the space is also missing and the words are joined together. So I also need to know what to put in the S&R boxes to search for words that have a capital in them so that I can add a full stop and a space at that point.

The are also other issues within it like combining paragraphs that have speach from two people where they should in fact be separated and speach marks not next to the spoken word (i.e. they have space on either side of them) and end up appearing on lines by themselves. These though I can figure out myself.
ghostyjack is offline   Reply With Quote