Last active
June 8, 2026 23:01
-
-
Save fabiolimace/4a30b78eb8b997bdf03e8d01a9a558d7 to your computer and use it in GitHub Desktop.
Regex replace rules to convert an ebook from EPUB to TXT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \b([0-9]+)[.]?<sup[^>]*>a</sup> | |
| \1ª | |
| \b([0-9]+)[.]?<sup[^>]*>o</sup> | |
| \1º | |
| \[(<a[^>]*></a>)?<a[^>]*>[0-9]+</a>\] | |
| \b([0-9]{4})-([0-9]{4})\b | |
| \1–\2 | |
| (\b[[:alpha:]]+[’”»]?[.,;:!?…])(<span>)?<a[^>]*>[0-9]+</a>(</span>)? | |
| \1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment