View Single Post
Old 06-10-2013, 10:28 PM   #1
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Help with Regex - find groups of words in uppercase

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.
Hoods7070 is offline   Reply With Quote