Common regexes

Fix Spacing in Photo Credits

Look for "\" in photo credits and add thin spaces:

find
(?<=<span class="photo-credit">)(.*?[^ ][^<br/>])/([^ ].*?)(?=</span>)
replace
\1 / \2

Uppercase to Title

find
([A-Z])([A-Z]+)\b
replace
\1\L\2\E

missing space after punctuation

Basic: ([.,?!;])(?![\s<’”"])

Catch edge cases like headers
(?<!&#160;)([.,?!;])(?!\s|[<>'"’”/\d)]|\.\.|xml|jpg|png|com|COM\b|DOCTYPE|idpf|w3|css|org\b|xhtml)

Missing spaces around pagebreak spans

Finds pagebreaks with no space before or after:
(?<![\s\>])<span .*?</span>(?![\s<’””]) or
(?<![\s>])<span[^>]*pagebreak[^>]*></span>(?![\s<])

find (LCSH|ISBN|EPUB|LCC|PDF|DDC)
replace <small>\1</small>

DS_Store

In Terminal, cd to proper directory:
find . -name ".DS_Store" -type f -delete_

emojis

smiley: &#128578; 🙂
smiley 2: &#128512; 😀
frown: &#128577; 🙁
wink: &#128521; 😉
- https://www.w3schools.com/charsets/ref_emoji_smileys.asp

Epubcheck Command Line

epubcheck + drag and drop path `epubcheck --json ~/Desktop/output.json ' + drag and drop path

Ace Command Line

ace + drag and drop path ace --outdir ~/Desktop/ace-report + drag and drop path

OLD v5

cd /Applications/epubcheck-5.0.0
java -jar epubcheck.jar + path (note: remember to escape spaces)