Quote:
Originally Posted by Hoods7070
I want to be able to find groups of text all in uppercase (and any punctuation etc. in those groups) in my books then span the groups with a style. e.g. Find THE CAT SAT, ON THE-MAT, Replace same string with a span of Style tags around it.
I can easily single uppercase words, but I have no idea how to extend that search to include more than one word. Any help with that, and the code for the Replace would be greatly appreciated.
|
I used this search for an all CAPs new scene detect
Code:
<p>(.([A-Z]| ){4,10})
your search wants to detect a minimum count of CAPS (say {3,} ), followed by a space, repeated at least {4,} times
the trailing comma in the range says
or more if you don't want a finite cap.