View Single Post
Old 07-28-2020, 02:04 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I'm pretty sure that extra plus sign is culprit. So:

Code:
<p><b>([A-Z\s]+)</b></p>
That's assuming there is no other punctuation. Or numbers or anything. I frequently use:

Code:
<p><b>(.+?)</b></p>
That just grabs everything between those tags but isn't greedy, so it won't be to dangerous.

Or maybe:

Code:
<p><b>(.+\w)</b></p>
That would help if there are paragraphs that are in bold as well as titles. It assumes the titles don't have punctuation at the end.

Disclaimer: These are completely untested.
davidfor is offline   Reply With Quote