View Single Post
 
Old 04-15-2019, 05:50 PM
one4youman one4youman is offline Windows 7 32bit Office 2010
Novice
 
Join Date: Apr 2019
Posts: 4
one4youman is on a distinguished road
Default Extract Bold text from string

I am attempting to find a way to extract the first continuous bold words from a string that is created by the text contained within a bookmark.

For Example if String X = “Thequick brown fox jumps over the lazy dog” I would like to output “The quick brown fox” to String Y but not include “The lazy”, or for example if String X = “1. The quick brown fox jumps over the lazy dog” I would like to output “1. Thequick” to String Y but not include the remainder of the original string. The string text will always begin with the bold text I am looking to extract but will often contain other bolded words that I do not need.

Thank you in advance,
John

Reply With Quote