View Single Post
Old 07-27-2020, 08:30 PM   #1
Ted Friesen
Nameless Being
 
Replace truncating found text

Using this search: <p><b>([A-Z]+\s[A-Z]+)+</b></p>

the following string was found and the entire string was highlighted
<p><b>MEDICATIONS THAT CAUSE WEIGHT GAIN</b></p>

but applying this replace: <h4>\1</h4>

I got the following truncated result <h4>T GAIN</h4>

What I was hoping to do was to find all occurrences of
<p><b>ONLY WORDS IN CAPS</b></p>, regardless of the number of words and replace it with <h4>ONLY WORDS IN CAPS</h4>. Looking to capture strings of two or more words.
  Reply With Quote