View Single Post
Old 03-02-2023, 10:35 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
What you are looking for is called a regular expression, or Regex. The basics of Regex-ese is fairly simple and straightforward. Don't get alarmed by some of the more advanced stuff, you (almost) never need the super advanced stuff.

For your Chapter example, I would use:

Find: <p>\s*Chapter (\d+): (.*?)\s*</p>
Replace: [leave blank]

Make sure you have Regex as the Mode and then I would just do them one at a time until you are confident you got them all.

FYI the funny codes are simply wildcards:
Code:
<p>\s*Chapter (\d+): (.*?)\s*</p>

\s* means any (or none) blank spaces
(\d+) means any group of 1, or more, numerical digits
(.*?) means any group of characters before stopping at any space before the </p>
You can find much more in-depth explanation and examples on Regex in the MR Wiki and by doing a search of the threads.

<--->

I'm not aware of a way to select "line 14" and delete it, but if it has a consistent formatting or something that you can use the regex search to find then I'd use that.

Last edited by Turtle91; 03-02-2023 at 10:47 PM.
Turtle91 is offline   Reply With Quote