Thread: Regex examples
View Single Post
Old 10-06-2023, 11:14 AM   #745
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Try checking the "Minimal Match" in Regex Options.

Also if the subtitle paragraph never has nested tags you can change things to look for anything but a tag begin. Then you will not need to check Minimal Match (greediness control)

Effectively all characters not a < and as many as you want to be followed by ending p tag

[^<]*</p>

Last edited by KevinH; 10-06-2023 at 03:06 PM.
KevinH is offline   Reply With Quote