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
|