try this solution:
(this grep can be improved if you have more than two words before colon)
THANK YOU VERY MUCH permio_oscar
Your solution worked perfectly.
I have posted one grep and then I have made immediately one small modification
(The first version didn't find text only at the beginning of the story).
have you used this latest version grep?
premio_oscar you mentioned this GREP can be improved if you have two or more words before colon,
any way to Bold 'all' the words?
i.e. Bold after the full stop from the previous sentence, to the colon.
Sometimes there could be as many as 10 words from the start of the sentence, to the colon.
Dosage and Administration: Adults: 50 mg subcutaneous injection per week. See full PI for further information. Adverse Effects in children over the age of 10 years: Thrombocytopenia; serious infections; including pneumonia, cellulitis, septic arthritis, sepsis, tuberculosis and death; malignancies, including lymphoma; anaphylactic reactions; interstitial lung disease; CNS or localised demyelinating events; psoriasis (new onset or exacerbation).
I'd do this with a combination of a nested style through 1 colon to pick up the first instance, and then add a GREP style for any others. For the GREP, (?<=\.\s)[\w\s]+: seems to work here. It could also be done with two GREP styles, using ^[\s\s]+: to find the first instance. Note that any punctuation in the text between the first word you want to find and the colon will cause the GREP to fail.
Why not [grep style]?
because it erroneously finds "Adults:" after "Dosage and Administration:" above....
It seems to work softly with 2 grep styles :
… But not truly convinced!
Check this one.
Much better. Combines the start of paragraph and mid paragraph instances into one query.
Right! More interesting here!
Obi-wan Kenobi this seems to work...
Olfar, this works AMAZINGLY too! It's not often I'll receive two colons in one sentence but it happens. Thank you, and much appreciated.