Quote:
Originally Posted by cybmole
I suspect there is no easy answer to this but I will ask anyway.
given a book which uses capitalisation in lieu of scene breaks, with all paragraphs sharing the same CSS i.e.
THIS IS HOW THE 1st paragraphs starts.......blah blah
but not the next paragraph...
Or the one after that......
....
YET SOME TIME LATER THERE is another instance
...
I want to pick out those capitalised starts in order to assign a unique CSS class.
but devising a rule is very hard.
testing that 2nd letter of a paragraph is capitalised works most times but will miss
I CANNOT GET THIS one... and will miss A TOUGH ACT TO follow
and will mis-classify
"I don't want this one"
any better methods, anyone ?
|
Case sensitive
find 1 or more Upper followed by a space, 2 or more times