View Single Post
Old 05-01-2016, 07:19 PM   #12
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@BR -- agree 100%

Was not even thinking of limited to just first paragraphs. I was going for any <p> tag


I was thinking that ...

if the first word after a <p> is all caps, then it would be capitialized

if the second, third, and fourth (maybe more) words after a <p> were all caps, then they would be lower cased

Even stepping through with [Find] or [Replace, Find Next] to catch:

'SMILEY FLEW TO DODGE CITY; CAPABILITY BROWN was in the arrivals hall to meet him...'

to be fixed manually would be a lot faster then manually going to each file, highlighting the 'offending text,' and right clicking to change the case, etc.

'Smiley flew to Dodge City; Capaility Brown was in the arrivals hall to meet him...'

I tried 2 RegExs to do it in two passes, but never got even the first one to work.

I think theducks' comment about differences in RegEx engines means that there is no way to automate the process
phossler is offline   Reply With Quote