06-21-2022, 07:20 PM | #16 | ||
Wizard
Posts: 2,303
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Also, you may be interested in this thread: where I broke down 5 different Regexes + color-coordinated them + explained them step-by-step. Quote:
When you learn to search (and replace) via patterns, you can save SO MUCH TIME compared to the old way of doing searches one-by-one. Like a few helpful ones I've used is: Regex #1 (Full Month + Day) Search: (January|February|March|April|May|June|July|August |September|October|November|December) (\d{1,2}), It looks for:
which matches:
* * * * * Side Note #1: You could easily replace that with a: Replace: \2 \1 to change it into a "flip the date from American -> British" regex:
* * * * * Regex #2 (Shortened Month + Comma) (Typo) Search: (Jan|Feb|Mar|Apr|Aug|Sept|Oct|Nov|Dec), Replace: \1. It looks for:
and Replaces with:
which changes:
Quite common in OCR—when a spec of dust can easily change a period into a comma—and it's even a common error found in tables/footnotes. (One of the books I worked on was a multi-volume Thomas Jefferson book which cited dates of every written letter... SO many references had that typo in there!) Last edited by Tex2002ans; 06-21-2022 at 07:34 PM. |
||
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pdf regex question - regex that wraps to a new line | flyash | Conversion | 1 | 09-05-2021 09:00 AM |
Predefined regex for Regex-function | sherman | Editor | 3 | 01-19-2020 05:32 AM |
Regex help please | FrostWolf | Library Management | 2 | 09-23-2014 11:50 PM |
RegEx Help | ghostyjack | Workshop | 4 | 03-22-2012 09:24 AM |
Regex | Gunnerp245 | Conversion | 5 | 03-05-2012 04:15 PM |