View Single Post
Old 02-26-2021, 01:01 PM   #2
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 318
Karma: 3200000
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I would try something like:

Code:
\n\n\d{1,}\n\n.*[a-z]\n\n
Which is two newlines, + one or more digits, + 2 more newlines, + a string ending on a lowercase letter, + two newlines. It'll take some wrangling to rework that into Word's "regex," but if you rip it into something else that ought to work directly. Take care though if any of those headers end on anything other than a lowercase letter (trailing whitespace, punctuation mark, etc.).

Last edited by phillipgessert; 02-26-2021 at 05:32 PM.
phillipgessert is offline   Reply With Quote