How do I change one or more upper case words followed by a colon and then a space or new line to the same enclosed by <b> and </b>?
For example -
Blah blah. RESULTS: Blah blah blah
to
Blah blah. <b>RESULTS: </b>Blah blah blah
and
Blah blah. MATERIALS AND METHODS: Blah blah blah
to
Blah blah. <b>MATERIALS AND METHODS: </b>Blah blah blah
and
Blah blah. CONCLUSIONS:
Blah blah blah
to
Blah blah. <b>CONCLUSIONS:
</b>Blah blah blah
Thanks,
Paul
What regular expression for complex search and replace?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Code: Select all
Find ([[:upper:]]([[:upper:]]| )+:)
Replace <b>\1</b>
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be